From patchwork Fri Jun 2 12:24:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 101238 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp365422qge; Fri, 2 Jun 2017 05:25:16 -0700 (PDT) X-Received: by 10.80.166.101 with SMTP id d92mr5784303edc.132.1496406316637; Fri, 02 Jun 2017 05:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496406316; cv=none; d=google.com; s=arc-20160816; b=byU/loz0rY7UmjnJn4/0TpyADGVdP6Rc6bgalgwDr3tsyEMw1Mc66QWXJ6jM15OLLp RlYXwsfy5Zp5BWsFlrACsNq1JZQ7EE7Rld8A+U7ZjJTYkpqERzHvRUNX1dxw3M3eftL4 zHtt2D775f2H7UNFcHRLBs0FA1/BADx3h+fWj8QokrqFsOiah7qQltkO8m4iWKZMRSEO 2p3L52ap4Hcc+2fAtVc8ssDZRLucjUxrPy7olxkHWskyp8ZgNUIUEslg6cVeslgGpeD2 LTen318+I9q5H9A4w4BdXgQLdPUs8sOQKzm0yLVdRrhSo8bMEq3eoVaMbqaDilWlFUss ma0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=lxMKg6k4rYrLXyaIVPi/5aPOpiE6cKpkDrBa/lcxTr0=; b=oR/Llc9HZmKuSLRTMRMEiC8V/h5pZ0++FuNKwWCauAfB+W0eovKt7OfzoRmirvc9lk w/hQwcz13tH9DjEw5wjdhNE56tH3i7b6S4GkEB1qEP/g3mw01IXso9CYukhDIK4VBV2E trznxbEHW13EIEcamzVN8xeJt0tS2Hzjuou00xjystLtS/7Gc7gQ/W4cXzblXFYYsDM7 X54g8IlIwanPkEILetUgwWmG+UBoMYjPoLFvqs7+5a8zJn0BgXX3KPMctmx9Pl6N9F33 Ug4h7DEeJYwKOu0lrNduTIDZsaSZLZaVxfxC8BoqLDz1f5U7UK6K6Q6eqnqti5RTONVi XMjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x23si24349288edi.152.2017.06.02.05.25.16; Fri, 02 Jun 2017 05:25:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 17E88C21CCE; Fri, 2 Jun 2017 12:24:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 78C13C21CB8; Fri, 2 Jun 2017 12:24:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 59D63C21CD9; Fri, 2 Jun 2017 12:24:26 +0000 (UTC) Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by lists.denx.de (Postfix) with ESMTPS id 98C57C21CB5 for ; Fri, 2 Jun 2017 12:24:22 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v52COKJa017995; Fri, 2 Jun 2017 07:24:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496406260; bh=RI/Yp2Q7RzRNG8lL/b9s/kctXo4wKqRK13VpWj+Ceuw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=M8FDRaZx5UdB5MYd9zja8gbDKb7iBy159s7+HYj7S98VPg98AMdw+/+mlbTvrb2Tm YAy0BxzC20cO+TtX+ovy3gXVlXqHFOtQwjHGln3tCl7MBPJMXlj8/sZ14FQwv3pB3m 03U5LZ88aW0m4KMR7jtPznQXXvNKM0XOV3gVOV1M= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v52COK3v022719; Fri, 2 Jun 2017 07:24:20 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Fri, 2 Jun 2017 07:24:19 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v52CO6IW010502; Fri, 2 Jun 2017 07:24:17 -0500 From: Sekhar Nori To: Tom Rini Date: Fri, 2 Jun 2017 17:54:02 +0530 Message-ID: <20170602122405.18983-5-nsekhar@ti.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170602122405.18983-1-nsekhar@ti.com> References: <20170602122405.18983-1-nsekhar@ti.com> MIME-Version: 1.0 Cc: Vitaly Andrianov , u-boot@lists.denx.de, Roger Meier , Peter Howard Subject: [U-Boot] [PATCH 4/7] config_fallbacks: add additional fallbacks for fat filesystem X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add fallbacks needed to keep all boards building while they are migrated to use Kconfig symbols instead of defines in _config.h files for FAT filesystem. These should eventually go away once Kconfig select or imply statements are put in place and duplicated defines in _config.h removed. Signed-off-by: Sekhar Nori Reviewed-by: Tom Rini --- include/config_fallbacks.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index 5a698a8349ab..a4a4d5514070 100644 --- a/include/config_fallbacks.h +++ b/include/config_fallbacks.h @@ -29,10 +29,17 @@ #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } #endif -#if defined(CONFIG_CMD_FAT) && !defined(CONFIG_FS_FAT) +#if (defined(CONFIG_CMD_FAT) || \ + defined(CONFIG_ENV_IS_IN_FAT) || \ + defined(CONFIG_SPL_FAT_SUPPORT)) && \ + !defined(CONFIG_FS_FAT) #define CONFIG_FS_FAT #endif +#if defined(CONFIG_ENV_IS_IN_FAT) && !defined(CONFIG_FAT_WRITE) +#define CONFIG_FAT_WRITE +#endif + #if (defined(CONFIG_CMD_EXT4) || defined(CONFIG_CMD_EXT2)) && \ !defined(CONFIG_FS_EXT4) #define CONFIG_FS_EXT4