diff mbox

[U-Boot,4/7] config_fallbacks: add additional fallbacks for fat filesystem

Message ID 20170602122405.18983-5-nsekhar@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Sekhar Nori June 2, 2017, 12:24 p.m. UTC
Add fallbacks needed to keep all boards building
while they are migrated to use Kconfig symbols
instead of defines in <board>_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 <board>_config.h removed.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 include/config_fallbacks.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Tom Rini June 2, 2017, 3:02 p.m. UTC | #1
On Fri, Jun 02, 2017 at 05:54:02PM +0530, Sekhar Nori wrote:

> Add fallbacks needed to keep all boards building
> while they are migrated to use Kconfig symbols
> instead of defines in <board>_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 <board>_config.h removed.
> 
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini June 4, 2017, 5:10 p.m. UTC | #2
On Fri, Jun 02, 2017 at 05:54:02PM +0530, Sekhar Nori wrote:

> Add fallbacks needed to keep all boards building
> while they are migrated to use Kconfig symbols
> instead of defines in <board>_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 <board>_config.h removed.
> 
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

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