Skip to contentSkip to conversation

fs: fat: convert to kconfig + switch some TI platforms

PATCH New Sekhar Nori 2 participants 21 messages Jun 2, 2017 – Jun 4, 2017

Subsystems (13)
lore
Share & tools
lore
#0 lore raw

cover fs: fat: convert to kconfig + switch some TI platforms

Hi,

Here is an attempt to convert FAT filesystem configuraition to kconfig. And switch of some TI platforms to use the newly introduced support.

Tested on OMAP-L138 LCDK board. Build tested using:

$ tools/buildman/buildman am33 am43 omap davinci keystone

Sekhar Nori (7):
fs: fat: add kbuild configuration support
configs: k2*_evm: let each board decide env location
configs: k2g_evm: make sure config fallbacks take effect
config_fallbacks: add additional fallbacks for fat filesystem
configs: am335x: siemens: migrate to enabling FAT FS using kconfig
board: ti: enable support for writing to fat partition
configs: omapl138_lcdk: enable fat filesystem support

 board/ti/common/Kconfig                |  1 +
 configs/draco_defconfig                |  1 +
 configs/etamin_defconfig               |  1 +
 configs/omapl138_lcdk_defconfig        |  1 +
 configs/rastaban_defconfig             |  1 +
 configs/thuban_defconfig               |  1 +
 fs/fat/Kconfig                         | 24 ++++++++++++++++++++++++
 include/config_fallbacks.h             |  9 ++++++++-
 include/configs/am43xx_evm.h           |  1 -
 include/configs/k2e_evm.h              |  4 ++++
 include/configs/k2g_evm.h              |  7 ++++---
 include/configs/k2hk_evm.h             |  4 ++++
 include/configs/k2l_evm.h              |  4 ++++
 include/configs/siemens-am33x-common.h |  1 -
 include/configs/ti_armv7_common.h      |  8 --------
 include/configs/ti_armv7_keystone2.h   |  3 ---
 16 files changed, 54 insertions(+), 17 deletions(-)
Signature · 1 line
2.9.0
#1 lore raw

PATCH RESEND 1/7 fs: fat: add kbuild configuration support

Add Kconfig symbols for various configurations
supported by FAT filesystem support code.

CONFIG_SUPPORT_VFAT has been left out since its
force enabled in include/fat.h and probably
should get removed at some point.

---
Resend of https://patchwork.ozlabs.org/patch/769770/ with no changes. Now sending again along with a bigger series.

 fs/fat/Kconfig | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
fs/fat/Kconfig +24 -0
index e69de29bb2d1..e7978aae67d2 100644
@@ -0,0 +1,24 @@
+config FS_FAT
+	bool "Enable FAT filesystem support"
+	help
+	  This provides support for reading images from File Allocation Table
+	  (FAT) filesystem. FAT filesystem is a legacy, lightweight filesystem.
+	  It is useful mainly for its wide compatibility with various operating
+	  systems. You can also enable CMD_FAT to get access to fat commands.
+
+config FAT_WRITE
+	bool "Enable FAT filesystem write support"
+	depends on FS_FAT
+	help
+	  This provides support for creating and writing new files to an
+	  existing FAT filesystem partition.
+
+config FS_FAT_MAX_CLUSTSIZE
+	int "Set maximum possible clusersize"
+	default 65536
+	depends on FS_FAT
+	help
+	  Set the maximum possible clustersize for the FAT filesytem. This
+	  is the smallest amount of disk space that can be used to hold a
+	  file. Unless you have an extremely tight memory memory constraints,
+	  leave the default.
Signature · 1 line
2.9.0
#2 lore raw

PATCH RESEND 1/7 fs: fat: add kbuild configuration support

Quoted 8 lines · Sekhar Nori

Add Kconfig symbols for various configurations supported by FAT filesystem support code.

CONFIG_SUPPORT_VFAT has been left out since its force enabled in include/fat.h and probably should get removed at some point.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170602/0756801d/attachment.sig>
#3 lore raw

PATCH RESEND 1/7 fs: fat: add kbuild configuration support

In reply to Sekhar Nori
Quoted 8 lines · Sekhar Nori

Add Kconfig symbols for various configurations supported by FAT filesystem support code.

CONFIG_SUPPORT_VFAT has been left out since its force enabled in include/fat.h and probably should get removed at some point.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170604/c8374bcb/attachment.sig>
#4 lore raw

PATCH 2/7 configs: k2*_evm: let each board decide env location

In reply to Sekhar Nori

Not all TI Keystone2 EVMs want environment in NAND flash. K2G EVM which has an MMC/SD slot, keep environment in a FAT partition on SD card.

Since ti_armv7_keystone2.h defines environment is in NAND, boards which do not follow that have to #undef'ine that configuration. This leads to ugly ordering issues around where exactly the include of ti_armv7_keystone2.h can come in within the k2*_evm.h files.

Move environment location to config file of each board. This should make it easy to change it for any one board without affecting all other boards.

---
 include/configs/k2e_evm.h            | 4 ++++
 include/configs/k2g_evm.h            | 2 +-
 include/configs/k2hk_evm.h           | 4 ++++
 include/configs/k2l_evm.h            | 4 ++++
 include/configs/ti_armv7_keystone2.h | 3 ---
 5 files changed, 13 insertions(+), 4 deletions(-)
include/configs/k2e_evm.h +4 -0
index 3a7993e8290c..b186bfc89151 100644
@@ -27,6 +27,10 @@
 	"name_uboot=u-boot-spi-k2e-evm.gph\0"				\
 	"name_fs=arago-console-image-k2e-evm.cpio.gz\0"
 
+#define CONFIG_ENV_SIZE				(256 << 10)  /* 256 KiB */
+#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_OFFSET			0x100000
+
 #include <configs/ti_armv7_keystone2.h>
 
 /* SPL SPI Loader Configuration */
include/configs/k2g_evm.h +1 -1
index bee1be794baf..9a07eacb8e7a 100644
@@ -63,8 +63,8 @@
 #define CONFIG_PHY_MICREL
 #define PHY_ANEG_TIMEOUT	10000 /* PHY needs longer aneg time */
 
-#undef CONFIG_ENV_IS_IN_NAND
 #define CONFIG_ENV_IS_IN_FAT
+#define CONFIG_ENV_SIZE			(256 << 10)  /* 256 KiB */
 #define FAT_ENV_INTERFACE		"mmc"
 #define FAT_ENV_DEVICE_AND_PART		"0:1"
 #define FAT_ENV_FILE			"uboot.env"
include/configs/k2hk_evm.h +4 -0
index 202167bdef79..9598bc6976e9 100644
@@ -27,6 +27,10 @@
 	"name_uboot=u-boot-spi-k2hk-evm.gph\0"				\
 	"name_fs=arago-console-image-k2hk-evm.cpio.gz\0"
 
+#define CONFIG_ENV_SIZE				(256 << 10)  /* 256 KiB */
+#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_OFFSET			0x100000
+
 #include <configs/ti_armv7_keystone2.h>
 
 /* SPL SPI Loader Configuration */
include/configs/k2l_evm.h +4 -0
index a7ccdd117cd2..d054276e61eb 100644
@@ -27,6 +27,10 @@
 	"name_uboot=u-boot-spi-k2l-evm.gph\0"				\
 	"name_fs=arago-console-image-k2l-evm.cpio.gz\0"
 
+#define CONFIG_ENV_SIZE				(256 << 10)  /* 256 KiB */
+#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_OFFSET			0x100000
+
 #include <configs/ti_armv7_keystone2.h>
 
 /* SPL SPI Loader Configuration */
include/configs/ti_armv7_keystone2.h +0 -3
index 3161c50abb14..512c28a5f075 100644
@@ -185,9 +185,6 @@
 #define CONFIG_SYS_MAX_NAND_DEVICE		1
 #define CONFIG_SYS_NAND_MAX_CHIPS		1
 #define CONFIG_SYS_NAND_NO_SUBPAGE_WRITE
-#define CONFIG_ENV_SIZE				(256 << 10)  /* 256 KiB */
-#define CONFIG_ENV_IS_IN_NAND
-#define CONFIG_ENV_OFFSET			0x100000
 #define CONFIG_MTD_PARTITIONS
 #define CONFIG_RBTREE
 #define CONFIG_LZO
Signature · 1 line
2.9.0
#5 lore raw

PATCH 2/7 configs: k2*_evm: let each board decide env location

Quoted 10 lines · Sekhar Nori

Not all TI Keystone2 EVMs want environment in NAND flash. K2G EVM which has an MMC/SD slot, keep environment in a FAT partition on SD card.

Since ti_armv7_keystone2.h defines environment is in NAND, boards which do not follow that have to #undef'ine that configuration. This leads to ugly ordering issues around where exactly the include of ti_armv7_keystone2.h can come in within the k2*_evm.h files.

Quoted 5 lines

Move environment location to config file of each board. This should make it easy to change it for any one board without affecting all other boards.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170602/b93ba4cf/attachment.sig>
#6 lore raw

PATCH 2/7 configs: k2*_evm: let each board decide env location

In reply to Sekhar Nori
Quoted 10 lines · Sekhar Nori

Not all TI Keystone2 EVMs want environment in NAND flash. K2G EVM which has an MMC/SD slot, keep environment in a FAT partition on SD card.

Since ti_armv7_keystone2.h defines environment is in NAND, boards which do not follow that have to #undef'ine that configuration. This leads to ugly ordering issues around where exactly the include of ti_armv7_keystone2.h can come in within the k2*_evm.h files.

Quoted 5 lines

Move environment location to config file of each board. This should make it easy to change it for any one board without affecting all other boards.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170604/90e4bb3f/attachment.sig>
#7 lore raw

PATCH 3/7 configs: k2g_evm: make sure config fallbacks take effect

In reply to Sekhar Nori

Since config fallbacks contained in include/config_fallbacks.h come into k2g_evm.h file through ti_armv7_keystone2.h, it should be the last file included.

Without this, #define of FAT_WRITE when environment is in FAT does not happen as the environment location is decided later in the file.

Similar issues can come with other config fallbacks implemented.

---
 include/configs/k2g_evm.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/k2g_evm.h +3 -2
index 9a07eacb8e7a..1cc35769840f 100644
@@ -48,8 +48,6 @@
 	"get_pmmc_${boot} run_pmmc get_mon_${boot} run_mon "		\
 	"get_fdt_${boot} get_kern_${boot} run_kern"
 
-#include <configs/ti_armv7_keystone2.h>
-
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE		0x0c080000
 
@@ -80,4 +78,7 @@
 #endif
 
 #define SPI_MTD_PARTS	KEYSTONE_SPI1_MTD_PARTS
+
+#include <configs/ti_armv7_keystone2.h>
+
 #endif /* __CONFIG_K2G_EVM_H */
Signature · 1 line
2.9.0
#8 lore raw

PATCH 3/7 configs: k2g_evm: make sure config fallbacks take effect

Quoted 11 lines · Sekhar Nori

Since config fallbacks contained in include/config_fallbacks.h come into k2g_evm.h file through ti_armv7_keystone2.h, it should be the last file included.

Without this, #define of FAT_WRITE when environment is in FAT does not happen as the environment location is decided later in the file.

Similar issues can come with other config fallbacks implemented.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170602/708d9913/attachment.sig>
#9 lore raw

PATCH 3/7 configs: k2g_evm: make sure config fallbacks take effect

In reply to Sekhar Nori
Quoted 11 lines · Sekhar Nori

Since config fallbacks contained in include/config_fallbacks.h come into k2g_evm.h file through ti_armv7_keystone2.h, it should be the last file included.

Without this, #define of FAT_WRITE when environment is in FAT does not happen as the environment location is decided later in the file.

Similar issues can come with other config fallbacks implemented.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170604/5188b2d1/attachment.sig>
#10 lore raw

PATCH 4/7 config_fallbacks: add additional fallbacks for fat filesystem

In reply to Sekhar Nori

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.

---
 include/config_fallbacks.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
include/config_fallbacks.h +8 -1
index 5a698a8349ab..a4a4d5514070 100644
@@ -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
Signature · 1 line
2.9.0
#11 lore raw

PATCH 4/7 config_fallbacks: add additional fallbacks for fat filesystem

Quoted 10 lines · Sekhar Nori

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.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170602/76e320f0/attachment.sig>
#12 lore raw

PATCH 4/7 config_fallbacks: add additional fallbacks for fat filesystem

In reply to Sekhar Nori
Quoted 10 lines · Sekhar Nori

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170604/24bd4fde/attachment.sig>
#13 lore raw

PATCH 5/7 configs: am335x: siemens: migrate to enabling FAT FS using kconfig

In reply to Sekhar Nori

Now that there is Kconfig symbol available for
enabling FAT filesystem support, migrate to using
it for Siemens AM335x based boards.

---
 configs/draco_defconfig                | 1 +
 configs/etamin_defconfig               | 1 +
 configs/rastaban_defconfig             | 1 +
 configs/thuban_defconfig               | 1 +
 include/configs/siemens-am33x-common.h | 1 -
 5 files changed, 4 insertions(+), 1 deletion(-)
configs/draco_defconfig +1 -0
index 0e50b3109ea2..b6f6a767f62b 100644
@@ -66,3 +66,4 @@ CONFIG_G_DNL_MANUFACTURER="Siemens AG"
 CONFIG_G_DNL_VENDOR_NUM=0x0908
 CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OMAP_WATCHDOG=y
+CONFIG_FS_FAT=y
configs/etamin_defconfig +1 -0
index b6911fd71743..1733a041b2e2 100644
@@ -66,3 +66,4 @@ CONFIG_G_DNL_MANUFACTURER="Siemens AG"
 CONFIG_G_DNL_VENDOR_NUM=0x0908
 CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OMAP_WATCHDOG=y
+CONFIG_FS_FAT=y
configs/rastaban_defconfig +1 -0
index f77d4d408793..6998fcc32e6b 100644
@@ -66,3 +66,4 @@ CONFIG_G_DNL_MANUFACTURER="Siemens AG"
 CONFIG_G_DNL_VENDOR_NUM=0x0908
 CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OMAP_WATCHDOG=y
+CONFIG_FS_FAT=y
configs/thuban_defconfig +1 -0
index 914f70fd6a01..25494778e5a4 100644
@@ -66,3 +66,4 @@ CONFIG_G_DNL_MANUFACTURER="Siemens AG"
 CONFIG_G_DNL_VENDOR_NUM=0x0908
 CONFIG_G_DNL_PRODUCT_NUM=0x02d2
 CONFIG_OMAP_WATCHDOG=y
+CONFIG_FS_FAT=y
include/configs/siemens-am33x-common.h +0 -1
index 91618676752f..b5705b71693c 100644
@@ -120,7 +120,6 @@
 
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
-#define CONFIG_FS_FAT
 
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
Signature · 1 line
2.9.0
#14 lore raw

PATCH 6/7 board: ti: enable support for writing to fat partition

In reply to Sekhar Nori

Enable support for writing to FAT partitions on
TI's boards.

---
 board/ti/common/Kconfig           | 1 +
 include/configs/am43xx_evm.h      | 1 -
 include/configs/ti_armv7_common.h | 8 --------
 3 files changed, 1 insertion(+), 9 deletions(-)
board/ti/common/Kconfig +1 -0
index 1187cf54337f..0517b1dfdf12 100644
@@ -26,6 +26,7 @@ config TI_COMMON_CMD_OPTIONS
 	imply CMD_EXT4_WRITE
 	imply CMD_FASTBOOT if FASTBOOT
 	imply CMD_FAT
+	imply FAT_WRITE if CMD_FAT
 	imply CMD_FS_GENERIC
 	imply CMD_GPIO
 	imply CMD_GPT
include/configs/am43xx_evm.h +0 -1
index 25f63e831142..1d8e39c20352 100644
@@ -75,7 +75,6 @@
 #define FAT_ENV_INTERFACE		"mmc"
 #define FAT_ENV_DEVICE_AND_PART		"0:1"
 #define FAT_ENV_FILE			"uboot.env"
-#define CONFIG_FAT_WRITE
 
 #define CONFIG_SPL_LDSCRIPT		"arch/arm/mach-omap2/u-boot-spl.lds"
 
include/configs/ti_armv7_common.h +0 -8
index 0bd3c9f94cfa..5321ed6b0919 100644
@@ -145,14 +145,6 @@
 #define CONFIG_SUPPORT_RAW_INITRD
 
 /*
- * Common filesystems support.  When we have removable storage we
- * enabled a number of useful commands and support.
- */
-#if defined(CONFIG_MMC) || defined(CONFIG_USB_STORAGE)
-#define CONFIG_FAT_WRITE
-#endif
-
-/*
  * Our platforms make use of SPL to initalize the hardware (primarily
  * memory) enough for full U-Boot to be loaded. We make use of the general
  * SPL framework found under common/spl/.  Given our generally common memory
Signature · 1 line
2.9.0
#15 lore raw

PATCH 6/7 board: ti: enable support for writing to fat partition

Quoted 4 lines · Sekhar Nori

Enable support for writing to FAT partitions on
TI's boards.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170602/72b309e6/attachment.sig>
#16 lore raw

PATCH 6/7 board: ti: enable support for writing to fat partition

In reply to Sekhar Nori
Quoted 9 lines · Sekhar Nori

Enable support for writing to FAT partitions on
TI's boards.

---
 board/ti/common/Kconfig           | 1 +
 include/configs/am43xx_evm.h      | 1 -
 include/configs/ti_armv7_common.h | 8 --------
 3 files changed, 1 insertion(+), 9 deletions(-)

I included the Kconfig logic here in the first patch in the series, and then migrated it with everything else.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170604/84f209ed/attachment.sig>
#17 lore raw

PATCH 7/7 configs: omapl138_lcdk: enable fat filesystem support

In reply to Sekhar Nori

Now that we have ability to enable FAT filesystem support through Kconfig symbols, do it for OMAP-L138 LCDK board.

---
 configs/omapl138_lcdk_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/omapl138_lcdk_defconfig +1 -0
index ff5e06de299d..13585cff30a4 100644
@@ -29,4 +29,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
+CONFIG_FS_FAT=y
 CONFIG_OF_LIBFDT=y
Signature · 1 line
2.9.0
#18 lore raw

PATCH 7/7 configs: omapl138_lcdk: enable fat filesystem support

Quoted 13 lines · Sekhar Nori

Now that we have ability to enable FAT filesystem support through Kconfig symbols, do it for OMAP-L138 LCDK board.

---
 configs/omapl138_lcdk_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/omapl138_lcdk_defconfig +0 -0
index ff5e06de299d..13585cff30a4 100644

configs/omapl138_lcdk_defconfig CONFIG_SPI_FLASH=y · line 33

Quoted 5 lines
configs/omapl138_lcdk_defconfig +1 -0
@@ -29,4 +29,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
+CONFIG_FS_FAT=y
 CONFIG_OF_LIBFDT=y

This really should be via CMD_FAT so that the code is used, as we have a symbol for FS_FAT to use it with either of CMD_FAT or ENV_IS_IN_FAT. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170603/5351b11d/attachment.sig>
#19 lore raw

PATCH 1/1 Kconfig: Migrate FS_FAT / FAT_WRITE

In reply to Sekhar Nori

Now that these symbols are in Kconfig, migrate all users. Use imply on a number of platforms that default to having this enabled. As part of this we must migrate some straglers for CMD_FAT and DOS_PARTITION.

---
This replaces the original 5/7 and migrates everything.

 README                                       | 20 +-------------------
 arch/Kconfig                                 |  5 +++--
 arch/arm/Kconfig                             | 13 +++++++++++++
 configs/am335x_baltos_defconfig              |  1 +
 configs/am335x_evm_nor_defconfig             |  1 +
 configs/am335x_igep003x_defconfig            |  1 +
 configs/am335x_shc_defconfig                 |  1 +
 configs/am335x_shc_ict_defconfig             |  1 +
 configs/am335x_shc_netboot_defconfig         |  1 +
 configs/am335x_shc_prompt_defconfig          |  1 +
 configs/am335x_shc_sdboot_defconfig          |  1 +
 configs/am335x_shc_sdboot_prompt_defconfig   |  1 +
 configs/am335x_sl50_defconfig                |  1 +
 configs/am43xx_evm_ethboot_defconfig         |  1 +
 configs/am43xx_evm_qspiboot_defconfig        |  1 +
 configs/am43xx_evm_usbhost_boot_defconfig    |  1 +
 configs/am57xx_evm_nodt_defconfig            |  1 +
 configs/apalis_imx6_defconfig                |  1 +
 configs/apalis_imx6_nospl_com_defconfig      |  1 +
 configs/apalis_imx6_nospl_it_defconfig       |  1 +
 configs/at91sam9m10g45ek_mmc_defconfig       |  1 +
 configs/at91sam9n12ek_mmc_defconfig          |  1 +
 configs/at91sam9rlek_mmc_defconfig           |  1 +
 configs/at91sam9x5ek_mmc_defconfig           |  1 +
 configs/bcm958622hr_defconfig                |  1 +
 configs/birdland_bav335a_defconfig           |  1 +
 configs/birdland_bav335b_defconfig           |  1 +
 configs/brppt1_mmc_defconfig                 |  1 +
 configs/brppt1_nand_defconfig                |  1 +
 configs/brppt1_spi_defconfig                 |  1 +
 configs/brxre1_defconfig                     |  1 +
 configs/cairo_defconfig                      |  1 +
 configs/chiliboard_defconfig                 |  1 +
 configs/cl-som-am57x_defconfig               |  1 +
 configs/cm_t335_defconfig                    |  1 +
 configs/cm_t43_defconfig                     |  1 +
 configs/cm_t54_defconfig                     |  1 +
 configs/colibri_imx6_defconfig               |  1 +
 configs/colibri_imx6_nospl_defconfig         |  1 +
 configs/ds109_defconfig                      |  2 +-
 configs/duovero_defconfig                    |  1 +
 configs/gurnard_defconfig                    |  1 +
 configs/hikey_defconfig                      |  1 +
 configs/igep0020_defconfig                   |  1 +
 configs/igep0030_defconfig                   |  1 +
 configs/igep0032_defconfig                   |  1 +
 configs/kzm9g_defconfig                      |  1 +
 configs/ls1021aiot_qspi_defconfig            |  2 +-
 configs/ls1021aiot_sdcard_defconfig          |  2 +-
 configs/m28evk_defconfig                     |  1 +
 configs/m53evk_defconfig                     |  1 +
 configs/ma5d4evk_defconfig                   |  1 +
 configs/mx7ulp_evk_defconfig                 |  1 +
 configs/mx7ulp_evk_plugin_defconfig          |  1 +
 configs/novena_defconfig                     |  1 +
 configs/omap3_beagle_defconfig               |  1 +
 configs/omap3_overo_defconfig                |  1 +
 configs/omap3_pandora_defconfig              |  1 +
 configs/omap3_zoom1_defconfig                |  1 +
 configs/omap4_panda_defconfig                |  1 +
 configs/omap4_sdp4430_defconfig              |  1 +
 configs/omap5_uevm_defconfig                 |  1 +
 configs/omapl138_lcdk_defconfig              |  1 +
 configs/pcm051_rev1_defconfig                |  1 +
 configs/pcm051_rev3_defconfig                |  1 +
 configs/pengwyn_defconfig                    |  1 +
 configs/pepper_defconfig                     |  1 +
 configs/pic32mzdask_defconfig                |  1 +
 configs/picosam9g45_defconfig                |  1 +
 configs/r8a7795_salvator-x_defconfig         |  1 +
 configs/r8a7796_salvator-x_defconfig         |  1 +
 configs/s5p_goni_defconfig                   |  1 +
 configs/sama5d2_ptc_nandflash_defconfig      |  1 +
 configs/sama5d2_ptc_spiflash_defconfig       |  1 +
 configs/sama5d2_xplained_mmc_defconfig       |  1 +
 configs/sama5d36ek_cmp_mmc_defconfig         |  1 +
 configs/sama5d36ek_cmp_nandflash_defconfig   |  1 +
 configs/sama5d36ek_cmp_spiflash_defconfig    |  1 +
 configs/sama5d3_xplained_mmc_defconfig       |  1 +
 configs/sama5d3_xplained_nandflash_defconfig |  1 +
 configs/sama5d3xek_mmc_defconfig             |  1 +
 configs/sama5d3xek_nandflash_defconfig       |  1 +
 configs/sama5d3xek_spiflash_defconfig        |  1 +
 configs/sama5d4_xplained_mmc_defconfig       |  1 +
 configs/sama5d4ek_mmc_defconfig              |  1 +
 configs/zynq_zc770_xm011_defconfig           |  1 +
 configs/zynq_zc770_xm012_defconfig           |  1 +
 configs/zynq_zc770_xm013_defconfig           |  1 +
 include/configs/apalis-tk1.h                 |  3 ---
 include/configs/apalis_imx6.h                |  1 -
 include/configs/apalis_t30.h                 |  3 ---
 include/configs/at91-sama5_common.h          |  1 -
 include/configs/at91sam9m10g45ek.h           |  1 -
 include/configs/at91sam9n12ek.h              |  1 -
 include/configs/at91sam9rlek.h               |  1 -
 include/configs/at91sam9x5ek.h               |  1 -
 include/configs/bcm23550_w1d.h               |  3 ---
 include/configs/bcm28155_ap.h                |  3 ---
 include/configs/bcm_ep_board.h               |  3 ---
 include/configs/brppt1.h                     |  1 -
 include/configs/brxre1.h                     |  7 -------
 include/configs/colibri_imx6.h               |  1 -
 include/configs/colibri_t20.h                |  4 ----
 include/configs/colibri_t30.h                |  3 ---
 include/configs/devkit8000.h                 |  1 -
 include/configs/ds109.h                      |  1 -
 include/configs/etamin.h                     |  2 --
 include/configs/exynos-common.h              |  3 ---
 include/configs/hikey.h                      |  1 -
 include/configs/ls1021aiot.h                 |  2 --
 include/configs/ls1043ardb.h                 |  3 ---
 include/configs/m28evk.h                     |  2 --
 include/configs/m53evk.h                     |  2 --
 include/configs/ma5d4evk.h                   |  5 -----
 include/configs/mx7ulp_evk.h                 |  3 ---
 include/configs/novena.h                     |  1 -
 include/configs/pic32mzdask.h                |  2 --
 include/configs/picosam9g45.h                |  1 -
 include/configs/rcar-gen2-common.h           |  1 -
 include/configs/rcar-gen3-common.h           |  2 --
 include/configs/rk3036_common.h              |  2 --
 include/configs/rk3188_common.h              |  2 --
 include/configs/rk3288_common.h              |  2 --
 include/configs/rk3328_common.h              |  2 --
 include/configs/rk3399_common.h              |  2 --
 include/configs/rpi.h                        |  1 -
 include/configs/s5p_goni.h                   |  1 -
 include/configs/sama5d2_ptc.h                |  4 ----
 include/configs/sama5d3_xplained.h           |  4 ----
 include/configs/sama5d3xek.h                 |  4 ----
 include/configs/sandbox.h                    |  2 --
 include/configs/siemens-am33x-common.h       |  1 -
 include/configs/snapper9g45.h                |  1 -
 include/configs/socfpga_arria10_socdk.h      |  3 +--
 include/configs/socfpga_arria5_socdk.h       |  2 --
 include/configs/socfpga_cyclone5_socdk.h     |  2 --
 include/configs/socfpga_de0_nano_soc.h       |  2 --
 include/configs/socfpga_de10_nano.h          |  2 --
 include/configs/socfpga_de1_soc.h            |  2 --
 include/configs/socfpga_is1.h                |  2 --
 include/configs/socfpga_mcvevk.h             |  2 --
 include/configs/socfpga_sockit.h             |  2 --
 include/configs/socfpga_socrates.h           |  2 --
 include/configs/socfpga_sr1500.h             |  2 --
 include/configs/socfpga_vining_fpga.h        |  2 --
 include/configs/sunxi-common.h               |  2 --
 include/configs/tegra-common-post.h          |  3 ---
 include/configs/tegra-common.h               |  1 -
 include/configs/ti816x_evm.h                 |  2 --
 include/configs/ti_armv7_keystone2.h         |  1 -
 include/configs/uniphier.h                   |  1 -
 include/configs/xilinx_zynqmp.h              |  4 ----
 include/configs/zynq-common.h                |  1 -
 include/fat.h                                |  3 ---
 scripts/config_whitelist.txt                 |  3 ---
 155 files changed, 103 insertions(+), 166 deletions(-)
README +1 -19
index 77d46d2b42..075d919df3 100644
@@ -840,7 +840,6 @@ The following options need to be configured:
 					  that work for multiple fs types
 		CONFIG_CMD_FS_UUID	* Look up a filesystem UUID
 		CONFIG_CMD_SAVEENV	  saveenv
-		CONFIG_CMD_FAT		* FAT command support
 		CONFIG_CMD_FLASH	  flinfo, erase, protect
 		CONFIG_CMD_FPGA		  FPGA device initialization support
 		CONFIG_CMD_GO		* the 'go' command (exec code)
@@ -1065,8 +1064,6 @@ The following options need to be configured:
 - Partition Labels (disklabels) Supported:
 		Zero or more of the following:
 		CONFIG_MAC_PARTITION   Apple's MacOS partition table.
-		CONFIG_DOS_PARTITION   MS Dos partition table, traditional on the
-				       Intel architecture, USB sticks, etc.
 		CONFIG_ISO_PARTITION   ISO partition table, used on CDROM etc.
 		CONFIG_EFI_PARTITION   GPT partition table, common when EFI is the
 				       bootloader.  Note 2TB partition limit; see
@@ -1519,21 +1516,6 @@ The following options need to be configured:
 		CONFIG_SYS_JFFS2_FIRST_BANK, CONFIG_SYS_JFFS2_NUM_BANKS
 		Define these for a default partition on a NOR device
 
-- FAT(File Allocation Table) filesystem write function support:
-		CONFIG_FAT_WRITE
-
-		Define this to enable support for saving memory data as a
-		file in FAT formatted partition.
-
-		This will also enable the command "fatwrite" enabling the
-		user to write files to FAT.
-
-- FAT(File Allocation Table) filesystem cluster size:
-		CONFIG_FS_FAT_MAX_CLUSTSIZE
-
-		Define the max cluster size for fat operations else
-		a default value of 65536 will be defined.
-
 - Keyboard Support:
 		See Kconfig help for available keyboard drivers.
 
@@ -3870,7 +3852,7 @@ but it can not erase, write this NOR flash by SRIO or PCIE interface.
          environment.
 
        - CONFIG_FAT_WRITE:
-         This should be defined. Otherwise it cannot save the environment file.
+         This must be enabled. Otherwise it cannot save the environment file.
 
 - CONFIG_ENV_IS_IN_MMC:
 
arch/Kconfig +3 -2
index e0e4e8486c..e44767113d 100644
@@ -70,14 +70,15 @@ config SANDBOX
 	select DM_SPI
 	select DM_GPIO
 	select DM_MMC
-	imply CRC32_VERIFY
 	imply CMD_GETTIME
 	imply CMD_HASH
 	imply CMD_IO
 	imply CMD_IOTRACE
-	imply LZMA
 	imply CMD_LZMADEC
+	imply CRC32_VERIFY
+	imply FAT_WRITE
 	imply HASH_VERIFY
+	imply LZMA
 
 config SH
 	bool "SuperH architecture"
arch/arm/Kconfig +13 -0
index a8118ce0df..deb7b24682 100644
@@ -477,6 +477,7 @@ config ARCH_BCM283X
 	select DM_SERIAL
 	select DM_GPIO
 	select OF_CONTROL
+	imply FAT_WRITE
 
 config TARGET_VEXPRESS_CA15_TC2
 	bool "Support vexpress_ca15_tc2"
@@ -496,17 +497,20 @@ config TARGET_BCM23550_W1D
 	bool "Support bcm23550_w1d"
 	select CPU_V7
 	imply CRC32_VERIFY
+	imply FAT_WRITE
 
 config TARGET_BCM28155_AP
 	bool "Support bcm28155_ap"
 	select CPU_V7
 	imply CRC32_VERIFY
+	imply FAT_WRITE
 
 config TARGET_BCMCYGNUS
 	bool "Support bcmcygnus"
 	select CPU_V7
 	imply CRC32_VERIFY
 	imply CMD_HASH
+	imply FAT_WRITE
 	imply HASH_VERIFY
 
 config TARGET_BCMNSP
@@ -530,6 +534,7 @@ config ARCH_EXYNOS
 	select DM_SPI
 	select DM_GPIO
 	select DM_KEYBOARD
+	imply FAT_WRITE
 
 config ARCH_S5PC1XX
 	bool "Samsung S5PC1XX"
@@ -602,6 +607,7 @@ config ARCH_RMOBILE
 	select DM
 	select DM_SERIAL
 	select BOARD_EARLY_INIT_F
+	imply FAT_WRITE
 	imply SYS_THUMB_BUILD
 
 config TARGET_S32V234EVB
@@ -634,6 +640,7 @@ config ARCH_SOCFPGA
 	select SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
 	select SYS_THUMB_BUILD
 	imply CRC32_VERIFY
+	imply FAT_WRITE
 
 config ARCH_SUNXI
 	bool "Support sunxi (Allwinner) SoCs"
@@ -657,6 +664,7 @@ config ARCH_SUNXI
 	select USB_STORAGE if DISTRO_DEFAULTS
 	select USB_KEYBOARD if DISTRO_DEFAULTS
 	select USE_TINY_PRINTF
+	imply FAT_WRITE
 	imply PRE_CONSOLE_BUFFER
 	imply SPL_GPIO_SUPPORT
 	imply SPL_LIBCOMMON_SUPPORT
@@ -700,6 +708,7 @@ config ARCH_ZYNQ
 	select SPL_CLK
 	select CLK_ZYNQ
 	imply CMD_CLK
+	imply FAT_WRITE
 
 config ARCH_ZYNQMP
 	bool "Support Xilinx ZynqMP Platform"
@@ -713,9 +722,11 @@ config ARCH_ZYNQMP
 	select SPL_BOARD_INIT if SPL
 	select SPL_CLK
 	select DM_USB if USB
+	imply FAT_WRITE
 
 config TEGRA
 	bool "NVIDIA Tegra"
+	imply FAT_WRITE
 
 config TARGET_VEXPRESS64_AEMV8A
 	bool "Support vexpress_aemv8a"
@@ -974,6 +985,7 @@ config ARCH_UNIPHIER
 	select SPL_OF_CONTROL if SPL
 	select SPL_PINCTRL if SPL
 	select SUPPORT_SPL
+	imply FAT_WRITE
 	help
 	  Support for UniPhier SoC family developed by Socionext Inc.
 	  (formerly, System LSI Business Division of Panasonic Corporation)
@@ -1016,6 +1028,7 @@ config ARCH_ROCKCHIP
 	select DM_USB if USB
 	select DM_PWM
 	select DM_REGULATOR
+	imply FAT_WRITE
 
 config TARGET_THUNDERX_88XX
 	bool "Support ThunderX 88xx"
configs/am335x_baltos_defconfig +1 -0
index 590673b37c..f210cca87f 100644
@@ -60,4 +60,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0403
 CONFIG_G_DNL_PRODUCT_NUM=0xbd00
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_evm_nor_defconfig +1 -0
index 55ed8f3654..31019e30a0 100644
@@ -44,4 +44,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0451
 CONFIG_G_DNL_PRODUCT_NUM=0xd022
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_igep003x_defconfig +1 -0
index fa468f05e7..651e194ae6 100644
@@ -49,6 +49,7 @@ CONFIG_EFI_PARTITION=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 CONFIG_FDT_FIXUP_PARTITIONS=y
 # CONFIG_GENERATE_SMBIOS_TABLE is not set
configs/am335x_shc_defconfig +1 -0
index 1068678a7c..ab912bbc53 100644
@@ -39,4 +39,5 @@ CONFIG_ISO_PARTITION=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_shc_ict_defconfig +1 -0
index 85b24a548a..7d75c5cc7a 100644
@@ -39,4 +39,5 @@ CONFIG_ISO_PARTITION=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_shc_netboot_defconfig +1 -0
index 9117407065..322a070dea 100644
@@ -40,4 +40,5 @@ CONFIG_ISO_PARTITION=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_shc_prompt_defconfig +1 -0
index e71e54b3f5..c5d8dcae87 100644
@@ -37,4 +37,5 @@ CONFIG_ISO_PARTITION=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_shc_sdboot_defconfig +1 -0
index bd66fbc7b1..185258de08 100644
@@ -39,4 +39,5 @@ CONFIG_ISO_PARTITION=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_shc_sdboot_prompt_defconfig +1 -0
index bd66fbc7b1..185258de08 100644
@@ -39,4 +39,5 @@ CONFIG_ISO_PARTITION=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am335x_sl50_defconfig +1 -0
index bae1dfec23..86035d2897 100644
@@ -37,4 +37,5 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_ethboot_defconfig +1 -0
index 6a307066eb..20874dd0bc 100644
@@ -58,4 +58,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0403
 CONFIG_G_DNL_PRODUCT_NUM=0xbd00
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
index 84766e8674..c0d0bcc668 100644
@@ -55,4 +55,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0403
 CONFIG_G_DNL_PRODUCT_NUM=0xbd00
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
index a98a97fa42..870ed0fb24 100644
@@ -72,3 +72,4 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0403
 CONFIG_G_DNL_PRODUCT_NUM=0xbd00
+CONFIG_FAT_WRITE=y
configs/am57xx_evm_nodt_defconfig +1 -0
index 33e7f91e43..6048e6c911 100644
@@ -62,4 +62,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0451
 CONFIG_G_DNL_PRODUCT_NUM=0xd022
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/apalis_imx6_defconfig +1 -0
index c712cf91df..d171cf0754 100644
@@ -49,6 +49,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Toradex"
 CONFIG_G_DNL_VENDOR_NUM=0x1b67
 CONFIG_G_DNL_PRODUCT_NUM=0x4000
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 # CONFIG_EFI_LOADER is not set
configs/apalis_imx6_nospl_com_defconfig +1 -0
index f5f4e3de7f..6611c4306d 100644
@@ -42,5 +42,6 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Toradex"
 CONFIG_G_DNL_VENDOR_NUM=0x1b67
 CONFIG_G_DNL_PRODUCT_NUM=0x4020
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 # CONFIG_EFI_LOADER is not set
configs/apalis_imx6_nospl_it_defconfig +1 -0
index 0de47fe360..dba0a7c670 100644
@@ -42,5 +42,6 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Toradex"
 CONFIG_G_DNL_VENDOR_NUM=0x1b67
 CONFIG_G_DNL_PRODUCT_NUM=0x4020
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 # CONFIG_EFI_LOADER is not set
configs/at91sam9m10g45ek_mmc_defconfig +1 -0
index 18b6ddf7cf..d8ba087d38 100644
@@ -49,3 +49,4 @@ CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/at91sam9n12ek_mmc_defconfig +1 -0
index e7e8a014c6..d13eed0c15 100644
@@ -48,3 +48,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/at91sam9rlek_mmc_defconfig +1 -0
index 9a40c41f36..edf98810bf 100644
@@ -42,3 +42,4 @@ CONFIG_DEBUG_UART_BOARD_INIT=y
 CONFIG_DEBUG_UART_ANNOUNCE=y
 CONFIG_ATMEL_USART=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/at91sam9x5ek_mmc_defconfig +1 -0
index ddeeeefa1e..fbe11ef6cd 100644
@@ -54,3 +54,4 @@ CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/bcm958622hr_defconfig +1 -0
index 67e18b6268..62e50b63f4 100644
@@ -19,6 +19,7 @@ CONFIG_HASH_VERIFY=y
 CONFIG_CMD_FAT=y
 # CONFIG_MMC is not set
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_SHA1=y
 CONFIG_SHA256=y
 CONFIG_OF_LIBFDT=y
configs/birdland_bav335a_defconfig +1 -0
index 7811273e92..d866b6014f 100644
@@ -63,4 +63,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0451
 CONFIG_G_DNL_PRODUCT_NUM=0xd022
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/birdland_bav335b_defconfig +1 -0
index 1765ec4fa9..ef73fbfde1 100644
@@ -54,6 +54,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_GADGET=y
configs/brppt1_mmc_defconfig +1 -0
index 1bdbf90495..3566223190 100644
@@ -58,4 +58,5 @@ CONFIG_USB_STORAGE=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_LCD=y
 CONFIG_OMAP_WATCHDOG=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/brppt1_nand_defconfig +1 -0
index ed7432d7f4..f07a46b78f 100644
@@ -58,4 +58,5 @@ CONFIG_USB_STORAGE=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_LCD=y
 CONFIG_OMAP_WATCHDOG=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/brppt1_spi_defconfig +1 -0
index 02b5ff60e2..333e204310 100644
@@ -66,4 +66,5 @@ CONFIG_USB_STORAGE=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_LCD=y
 CONFIG_OMAP_WATCHDOG=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/brxre1_defconfig +1 -0
index 940793b5a6..f558886067 100644
@@ -57,5 +57,6 @@ CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_STORAGE=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 # CONFIG_EFI_LOADER is not set
configs/cairo_defconfig +1 -0
index da28e13d6b..d96a71a828 100644
@@ -34,4 +34,5 @@ CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/chiliboard_defconfig +1 -0
index 2f4c694a0a..579df941d4 100644
@@ -41,4 +41,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/cl-som-am57x_defconfig +1 -0
index ef76033779..8485137f1a 100644
@@ -53,4 +53,5 @@ CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/cm_t335_defconfig +1 -0
index dbb1c3b886..876e3320b7 100644
@@ -50,4 +50,5 @@ CONFIG_LED_STATUS_BOOT_ENABLE=y
 CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/cm_t43_defconfig +1 -0
index bec96aec98..d813cc54fb 100644
@@ -68,4 +68,5 @@ CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/cm_t54_defconfig +1 -0
index eef2f89dc3..ec26f999ba 100644
@@ -43,4 +43,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/colibri_imx6_defconfig +1 -0
index fcb7c53797..d8307b0836 100644
@@ -49,6 +49,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Toradex"
 CONFIG_G_DNL_VENDOR_NUM=0x1b67
 CONFIG_G_DNL_PRODUCT_NUM=0x4000
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 # CONFIG_EFI_LOADER is not set
configs/colibri_imx6_nospl_defconfig +1 -0
index fbf9306eeb..df24f17b2d 100644
@@ -42,5 +42,6 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Toradex"
 CONFIG_G_DNL_VENDOR_NUM=0x1b67
 CONFIG_G_DNL_PRODUCT_NUM=0x4000
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 # CONFIG_EFI_LOADER is not set
configs/ds109_defconfig +1 -1
index 46ac56797f..d8f373b492 100644
@@ -12,7 +12,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_DATE=y
-CONFIG_DOS_PARTITION=y
+CONFIG_CMD_FAT=y
 CONFIG_ISO_PARTITION=y
 # CONFIG_MMC is not set
 CONFIG_SPI_FLASH=y
configs/duovero_defconfig +1 -0
index 9e0ac20985..b945875adf 100644
@@ -28,4 +28,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/gurnard_defconfig +1 -0
index 2c6f52494a..d43fd14a8a 100644
@@ -18,6 +18,7 @@ CONFIG_CMD_PART=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SOURCE is not set
 # CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
configs/hikey_defconfig +1 -0
index b112be2ef5..5981d2f530 100644
@@ -16,3 +16,4 @@ CONFIG_MMC_DW=y
 CONFIG_MMC_DW_K3=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
configs/igep0020_defconfig +1 -0
index c81dfdfbdb..6e0a5e9812 100644
@@ -47,5 +47,6 @@ CONFIG_LED_STATUS_BOOT_ENABLE=y
 CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 CONFIG_FDT_FIXUP_PARTITIONS=y
configs/igep0030_defconfig +1 -0
index 9098451d84..5908a35629 100644
@@ -36,5 +36,6 @@ CONFIG_LED_STATUS_BOOT_ENABLE=y
 CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 CONFIG_FDT_FIXUP_PARTITIONS=y
configs/igep0032_defconfig +1 -0
index 56be1a1b23..53399e7523 100644
@@ -28,5 +28,6 @@ CONFIG_CMD_UBI=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 CONFIG_FDT_FIXUP_PARTITIONS=y
configs/kzm9g_defconfig +1 -0
index bc3e5d9091..a884e5a10c 100644
@@ -13,4 +13,5 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_FAT=y
 # CONFIG_MMC is not set
 CONFIG_MTD_NOR_FLASH=y
+# CONFIG_FAT_WRITE is not set
 CONFIG_OF_LIBFDT=y
configs/ls1021aiot_qspi_defconfig +1 -1
index 3deda487ce..3628367df0 100644
@@ -4,7 +4,7 @@ CONFIG_DEFAULT_DEVICE_TREE="ls1021a-iot-duart"
 CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT"
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_CMD_GPT=y
-CONFIG_DOS_PARTITION=y
+CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
 CONFIG_DM=y
 CONFIG_FSL_CAAM=y
configs/ls1021aiot_sdcard_defconfig +1 -1
index 089ea34334..e412024349 100644
@@ -7,7 +7,7 @@ CONFIG_SPL=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xe8
 CONFIG_CMD_GPT=y
-CONFIG_DOS_PARTITION=y
+CONFIG_CMD_FAT=y
 # CONFIG_SPL_EFI_PARTITION is not set
 CONFIG_OF_CONTROL=y
 CONFIG_DM=y
configs/m28evk_defconfig +1 -0
index fbd106ef92..944e39dda1 100644
@@ -41,4 +41,5 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/m53evk_defconfig +1 -0
index a7bf29731e..a33a601236 100644
@@ -37,4 +37,5 @@ CONFIG_CMD_UBI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 # CONFIG_VIDEO_SW_CURSOR is not set
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/ma5d4evk_defconfig +1 -0
index a267c9a55f..eca10d3c85 100644
@@ -40,5 +40,6 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_ATMEL_USBA=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 # CONFIG_EFI_LOADER is not set
configs/mx7ulp_evk_defconfig +1 -0
index c457d348d3..6ab7cb77e6 100644
@@ -7,6 +7,7 @@ CONFIG_HUSH_PARSER=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
 CONFIG_DM=y
 # CONFIG_BLK is not set
configs/mx7ulp_evk_plugin_defconfig +1 -0
index c457d348d3..6ab7cb77e6 100644
@@ -7,6 +7,7 @@ CONFIG_HUSH_PARSER=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
 CONFIG_DM=y
 # CONFIG_BLK is not set
configs/novena_defconfig +1 -0
index 49b963c64f..3c7589bf78 100644
@@ -39,4 +39,5 @@ CONFIG_USB_KEYBOARD=y
 CONFIG_USB_GADGET=y
 CONFIG_CI_UDC=y
 # CONFIG_VIDEO_SW_CURSOR is not set
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omap3_beagle_defconfig +1 -0
index 64971c139c..eb780ab223 100644
@@ -42,4 +42,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="TI"
 CONFIG_G_DNL_VENDOR_NUM=0x0451
 CONFIG_G_DNL_PRODUCT_NUM=0xd022
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omap3_overo_defconfig +1 -0
index 3be4a1d0b3..e360780d25 100644
@@ -44,4 +44,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omap3_pandora_defconfig +1 -0
index 3aa7ba3f58..d219ad011f 100644
@@ -24,4 +24,5 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_UBI=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omap3_zoom1_defconfig +1 -0
index c985c86d6d..8c0e830048 100644
@@ -30,4 +30,5 @@ CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omap4_panda_defconfig +1 -0
index 8fdf76076c..3d91f137e8 100644
@@ -27,4 +27,5 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omap4_sdp4430_defconfig +1 -0
index 7229142896..dda4030ecc 100644
@@ -25,4 +25,5 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omap5_uevm_defconfig +1 -0
index bd799b7dc3..f5ac38b47c 100644
@@ -48,4 +48,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0403
 CONFIG_G_DNL_PRODUCT_NUM=0xbd00
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/omapl138_lcdk_defconfig +1 -0
index 354438e1ef..cb351e4e67 100644
@@ -30,4 +30,5 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_SYS_NS16550=y
+# CONFIG_FAT_WRITE is not set
 CONFIG_OF_LIBFDT=y
configs/pcm051_rev1_defconfig +1 -0
index f278075b44..6b4e229f50 100644
@@ -57,4 +57,5 @@ CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/pcm051_rev3_defconfig +1 -0
index 5fa60b7785..6baca9650b 100644
@@ -57,4 +57,5 @@ CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/pengwyn_defconfig +1 -0
index 6d4d8ada49..8693dea534 100644
@@ -56,4 +56,5 @@ CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/pepper_defconfig +1 -0
index a7d67bf472..4b122d6d8c 100644
@@ -40,4 +40,5 @@ CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SYS_NS16550=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/pic32mzdask_defconfig +1 -0
index 9eb80766ed..688b989419 100644
@@ -42,5 +42,6 @@ CONFIG_DM_USB=y
 CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_PIC32=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
configs/picosam9g45_defconfig +1 -0
index f34dfe9fdb..aa61e4b65a 100644
@@ -35,4 +35,5 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/r8a7795_salvator-x_defconfig +1 -0
index 60e0b720bb..1eba299242 100644
@@ -16,6 +16,7 @@ CONFIG_CMD_NET=y
 CONFIG_CMD_NFS=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
+CONFIG_CMD_FAT=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_USB=y
 CONFIG_USB=y
configs/r8a7796_salvator-x_defconfig +1 -0
index d6f1840eab..5bd762da79 100644
@@ -16,6 +16,7 @@ CONFIG_CMD_NET=y
 CONFIG_CMD_NFS=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
+CONFIG_CMD_FAT=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_USB=y
 CONFIG_USB=y
configs/s5p_goni_defconfig +1 -0
index c3e04573b4..8aeab15bfb 100644
@@ -35,3 +35,4 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Samsung"
 CONFIG_G_DNL_VENDOR_NUM=0x04e8
 CONFIG_G_DNL_PRODUCT_NUM=0x6601
+CONFIG_FAT_WRITE=y
configs/sama5d2_ptc_nandflash_defconfig +1 -0
index 239bfdd66b..66edd31bfe 100644
@@ -16,6 +16,7 @@ CONFIG_SPL=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_SF=y
 # CONFIG_CMD_FPGA is not set
+CONFIG_CMD_FAT=y
 # CONFIG_MMC is not set
 CONFIG_SPI_FLASH=y
 CONFIG_USB=y
configs/sama5d2_ptc_spiflash_defconfig +1 -0
index 21014b937c..8771e0846c 100644
@@ -17,6 +17,7 @@ CONFIG_SPL=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_SF=y
 # CONFIG_CMD_FPGA is not set
+CONFIG_CMD_FAT=y
 # CONFIG_MMC is not set
 CONFIG_SPI_FLASH=y
 CONFIG_USB=y
configs/sama5d2_xplained_mmc_defconfig +1 -0
index f064a43c6b..b60e00ce5a 100644
@@ -74,3 +74,4 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_ATMEL_USBA=y
+CONFIG_FAT_WRITE=y
configs/sama5d36ek_cmp_mmc_defconfig +1 -0
index 32a21f9294..8c34e64bc5 100644
@@ -49,3 +49,4 @@ CONFIG_ATMEL_USART=y
 CONFIG_DM_SPI=y
 CONFIG_ATMEL_SPI=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/sama5d36ek_cmp_nandflash_defconfig +1 -0
index 34c4de17b9..9c72a67572 100644
@@ -49,3 +49,4 @@ CONFIG_ATMEL_USART=y
 CONFIG_DM_SPI=y
 CONFIG_ATMEL_SPI=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/sama5d36ek_cmp_spiflash_defconfig +1 -0
index 42c31111a1..10db9c96c6 100644
@@ -49,3 +49,4 @@ CONFIG_ATMEL_USART=y
 CONFIG_DM_SPI=y
 CONFIG_ATMEL_SPI=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/sama5d3_xplained_mmc_defconfig +1 -0
index d28d1d9a33..533dbcd00d 100644
@@ -65,3 +65,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
configs/sama5d3_xplained_nandflash_defconfig +1 -0
index 6f2432473d..d00ef6a633 100644
@@ -62,3 +62,4 @@ CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_FAT_WRITE=y
configs/sama5d3xek_mmc_defconfig +1 -0
index 994bc048ba..74719854a0 100644
@@ -74,3 +74,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_ATMEL_USBA=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/sama5d3xek_nandflash_defconfig +1 -0
index dd0263cea2..a75767be85 100644
@@ -69,3 +69,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_ATMEL_USBA=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/sama5d3xek_spiflash_defconfig +1 -0
index 069fbcc0a3..1d8491cdb7 100644
@@ -70,3 +70,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_ATMEL_USBA=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/sama5d4_xplained_mmc_defconfig +1 -0
index 4fc44e5747..e23df47ce6 100644
@@ -68,3 +68,4 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_ATMEL_USBA=y
+CONFIG_FAT_WRITE=y
configs/sama5d4ek_mmc_defconfig +1 -0
index 204d128395..68da5f9400 100644
@@ -72,3 +72,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_ATMEL_USBA=y
 CONFIG_LCD=y
+CONFIG_FAT_WRITE=y
configs/zynq_zc770_xm011_defconfig +1 -0
index dc49372e48..148f70360b 100644
@@ -1,6 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_ZYNQ=y
 CONFIG_SYS_TEXT_BASE=0x4000000
+# CONFIG_SPL_FAT_SUPPORT is not set
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm011"
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
configs/zynq_zc770_xm012_defconfig +1 -0
index 16cd613110..943efdb141 100644
@@ -1,6 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_ZYNQ=y
 CONFIG_SYS_TEXT_BASE=0x4000000
+# CONFIG_SPL_FAT_SUPPORT is not set
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm012"
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
configs/zynq_zc770_xm013_defconfig +1 -0
index 4396db0eb1..5c029109e2 100644
@@ -1,6 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_ZYNQ=y
 CONFIG_SYS_TEXT_BASE=0x4000000
+# CONFIG_SPL_FAT_SUPPORT is not set
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm013"
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
include/configs/apalis-tk1.h +0 -3
index 2c49729caa..c3cade9ea6 100644
@@ -50,9 +50,6 @@
 #define CONFIG_TFTP_BLOCKSIZE		16352
 #define CONFIG_TFTP_TSIZE
 
-/* Miscellaneous commands */
-#define CONFIG_FAT_WRITE
-
 #undef CONFIG_IPADDR
 #define CONFIG_IPADDR		192.168.10.2
 #define CONFIG_NETMASK		255.255.255.0
include/configs/apalis_imx6.h +0 -1
index 83a09153b4..8be586b51f 100644
@@ -66,7 +66,6 @@
 
 #define CONFIG_SUPPORT_EMMC_BOOT	/* eMMC specific */
 #define CONFIG_BOUNCE_BUFFER
-#define CONFIG_FAT_WRITE
 
 #ifdef CONFIG_MX6Q
 #define CONFIG_CMD_SATA
include/configs/apalis_t30.h +0 -3
index cdb50cc28b..9772d8b5c3 100644
@@ -46,9 +46,6 @@
 #define CONFIG_TFTP_BLOCKSIZE		16352
 #define CONFIG_TFTP_TSIZE
 
-/* Miscellaneous commands */
-#define CONFIG_FAT_WRITE
-
 /* Increase console I/O buffer size */
 #undef CONFIG_SYS_CBSIZE
 #define CONFIG_SYS_CBSIZE		1024
include/configs/at91-sama5_common.h +0 -1
index dbd4d843eb..dea8130046 100644
@@ -54,7 +54,6 @@
 #else
 /* u-boot env in sd/mmc card */
 #define CONFIG_ENV_IS_IN_FAT
-#define CONFIG_FAT_WRITE
 #define FAT_ENV_INTERFACE	"mmc"
 #define FAT_ENV_DEVICE_AND_PART	"0"
 #define FAT_ENV_FILE		"uboot.env"
include/configs/at91sam9m10g45ek.h +0 -1
index 010ebdbd40..a0c5b9afae 100644
@@ -115,7 +115,6 @@
 #define FAT_ENV_DEVICE_AND_PART	"0"
 #define FAT_ENV_FILE		"uboot.env"
 #define CONFIG_ENV_IS_IN_FAT
-#define CONFIG_FAT_WRITE
 #define CONFIG_ENV_SIZE		0x4000
 
 #define CONFIG_BOOTARGS		"console=ttyS0,115200 " \
include/configs/at91sam9n12ek.h +0 -1
index 411d7412af..50ddbd6475 100644
@@ -160,7 +160,6 @@
 #else
 /* Use file in FAT file to save environment */
 #define CONFIG_ENV_IS_IN_FAT
-#define CONFIG_FAT_WRITE
 #define FAT_ENV_INTERFACE		"mmc"
 #define FAT_ENV_FILE			"uboot.env"
 #define FAT_ENV_DEVICE_AND_PART		"0"
include/configs/at91sam9rlek.h +0 -1
index 7dcf7913de..8a8eb7c34f 100644
@@ -127,7 +127,6 @@
 
 /* bootstrap + u-boot + env + linux in mmc */
 #define CONFIG_ENV_IS_IN_FAT
-#define CONFIG_FAT_WRITE
 #define FAT_ENV_INTERFACE	"mmc"
 #define FAT_ENV_FILE		"uboot.env"
 #define FAT_ENV_DEVICE_AND_PART	"0"
include/configs/at91sam9x5ek.h +0 -1
index 33cc5fc7aa..fd2dbed137 100644
@@ -147,7 +147,6 @@
 #else /* CONFIG_SYS_USE_MMC */
 /* bootstrap + u-boot + env + linux in mmc */
 #define CONFIG_ENV_IS_IN_FAT
-#define CONFIG_FAT_WRITE
 #define FAT_ENV_INTERFACE	"mmc"
 #define FAT_ENV_FILE		"uboot.env"
 #define FAT_ENV_DEVICE_AND_PART "0"
include/configs/bcm23550_w1d.h +0 -3
index 9a36a4c5d7..02ae65ff57 100644
@@ -109,9 +109,6 @@
 /* Initial upstream - boot to cmd prompt only */
 #define CONFIG_BOOTCOMMAND		""
 
-/* Commands */
-#define CONFIG_FAT_WRITE
-
 #undef CONFIG_USB_GADGET_VBUS_DRAW
 #define CONFIG_USB_GADGET_VBUS_DRAW	0
 #define CONFIG_USBID_ADDR		0x34052c46
include/configs/bcm28155_ap.h +0 -3
index bb61e5b8c8..5a85f7fa9c 100644
@@ -108,9 +108,6 @@
 /* Initial upstream - boot to cmd prompt only */
 #define CONFIG_BOOTCOMMAND		""
 
-/* Commands */
-#define CONFIG_FAT_WRITE
-
 #define CONFIG_USBID_ADDR		0x34052c46
 
 #endif /* __BCM28155_AP_H */
include/configs/bcm_ep_board.h +0 -3
index fa7eff5428..2afbbea140 100644
@@ -62,9 +62,6 @@
 
 #define CONFIG_MX_CYCLIC
 
-/* Commands */
-#define CONFIG_FAT_WRITE
-
 /* Enable Time Command */
 
 /* Misc utility code */
include/configs/brppt1.h +0 -1
index 521d097f8a..10e8f88810 100644
@@ -276,7 +276,6 @@ MMCARGS
  * enabled a number of useful commands and support.
  */
 #if defined(CONFIG_MMC) || defined(CONFIG_USB_STORAGE)
-#define CONFIG_FAT_WRITE
 #define CONFIG_FS_EXT4
 #define CONFIG_EXT4_WRITE
 #endif /* CONFIG_MMC, ... */
include/configs/brxre1.h +0 -7
index 99846890e0..5814d748d9 100644
@@ -118,12 +118,5 @@ BUR_COMMON_ENV \
 #define CONFIG_ENV_OFFSET		0x40000	/* TODO: Adresse definieren */
 #define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
-/*
- * Common filesystems support.  When we have removable storage we
- * enabled a number of useful commands and support.
- */
-#if defined(CONFIG_MMC) || defined(CONFIG_USB_STORAGE)
-#define CONFIG_FAT_WRITE
-#endif /* CONFIG_MMC, ... */
 
 #endif	/* __CONFIG_BRXRE1_H__ */
include/configs/colibri_imx6.h +0 -1
index 8f4022a134..82812e577a 100644
@@ -64,7 +64,6 @@
 
 #define CONFIG_SUPPORT_EMMC_BOOT	/* eMMC specific */
 #define CONFIG_BOUNCE_BUFFER
-#define CONFIG_FAT_WRITE
 
 /* Network */
 #define CONFIG_FEC_MXC
include/configs/colibri_t20.h +0 -4
index 03f6863169..7355f78fcf 100644
@@ -67,10 +67,6 @@
 #define CONFIG_LZO
 #define CONFIG_RBTREE
 
-/* Debug commands */
-
-/* Miscellaneous commands */
-#define CONFIG_FAT_WRITE
 
 #define BOARD_EXTRA_ENV_SETTINGS \
 	"mtdparts=" MTDPARTS_DEFAULT "\0"
include/configs/colibri_t30.h +0 -3
index 853cd52878..53ff33e4b9 100644
@@ -44,9 +44,6 @@
 #define CONFIG_TFTP_BLOCKSIZE		16352
 #define CONFIG_TFTP_TSIZE
 
-/* Miscellaneous commands */
-#define CONFIG_FAT_WRITE
-
 /* Increase console I/O buffer size */
 #undef CONFIG_SYS_CBSIZE
 #define CONFIG_SYS_CBSIZE		1024
include/configs/devkit8000.h +0 -1
index c892b5faa9..92ce1273c6 100644
@@ -94,7 +94,6 @@
 #define CONFIG_CMD_NAND_LOCK_UNLOCK	/* nand (un)lock commands	*/
 
 #undef CONFIG_SUPPORT_RAW_INITRD
-#undef CONFIG_FAT_WRITE
 
 /* BOOTP/DHCP options */
 #define CONFIG_BOOTP_SUBNETMASK
include/configs/ds109.h +0 -1
index 4c874367fd..133b2b023c 100644
@@ -24,7 +24,6 @@
  * Commands configuration
  */
 #define CONFIG_CMD_EXT2
-#define CONFIG_CMD_FAT
 
 /*
  * mv-plug-common.h should be defined after CMD configs since it used them
include/configs/etamin.h +0 -2
index a0152a4a43..1662dbf197 100644
@@ -87,8 +87,6 @@
 	"led4=60,0,1\0" \
 	"led5=63,0,1\0"
 
-#undef CONFIG_CMD_FAT
-
 /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE       (1024 << 20)    /* 1GB */
 
include/configs/exynos-common.h +0 -3
index ade66a4330..031586b0df 100644
@@ -41,9 +41,6 @@
 /* PWM */
 #define CONFIG_PWM
 
-/* Command definition*/
-#define CONFIG_FAT_WRITE
-
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_CBSIZE		1024	/* Console I/O Buffer Size */
 #define CONFIG_SYS_PBSIZE		1024	/* Print Buffer Size */
include/configs/hikey.h +0 -1
index 0fb6fb3b60..2b4fec4bd4 100644
@@ -111,7 +111,6 @@
 #define FAT_ENV_INTERFACE               "mmc"
 #define FAT_ENV_DEVICE_AND_PART         "1:1"
 #define FAT_ENV_FILE                    "uboot.env"
-#define CONFIG_FAT_WRITE
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 
 /* Monitor Command Prompt */
include/configs/ls1021aiot.h +0 -2
index d6839c0916..c1ec2d440c 100644
@@ -158,8 +158,6 @@
 #define CONFIG_SYS_SCSI_MAX_DEVICE	(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
 		CONFIG_SYS_SCSI_MAX_LUN)
 
-#define CONFIG_CMD_FAT
-
 /* SPI */
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
 #define CONFIG_SPI_FLASH_SPANSION
include/configs/ls1043ardb.h +0 -3
index 2647b150b4..51e7624c63 100644
@@ -302,9 +302,6 @@
 #define CONFIG_LIBATA
 #define CONFIG_SCSI_AHCI
 #define CONFIG_CMD_SCSI
-#ifndef CONFIG_CMD_FAT
-#define CONFIG_CMD_FAT
-#endif
 #ifndef CONFIG_CMD_EXT2
 #define CONFIG_CMD_EXT2
 #endif
include/configs/m28evk.h +0 -2
index c4717238bb..8dea0313a3 100644
@@ -14,8 +14,6 @@
 #define CONFIG_TIMESTAMP		/* Print image info with timestamp */
 
 /* U-Boot Commands */
-#define CONFIG_FAT_WRITE
-
 #define CONFIG_CMD_NAND
 #define CONFIG_CMD_NAND_TRIMFFS
 
include/configs/m53evk.h +0 -2
index b237cea1da..51812257e1 100644
@@ -20,8 +20,6 @@
 /*
  * U-Boot Commands
  */
-#define CONFIG_FAT_WRITE
-
 #define CONFIG_CMD_NAND
 #define CONFIG_CMD_NAND_TRIMFFS
 #define CONFIG_CMD_SATA
include/configs/ma5d4evk.h +0 -5
index 6dc1fb047e..bb661400ec 100644
@@ -15,11 +15,6 @@
 #define CONFIG_SYS_USE_SERIALFLASH	1
 
 /*
- * U-Boot Commands
- */
-#define CONFIG_FAT_WRITE
-
-/*
  * Memory configurations
  */
 #define CONFIG_NR_DRAM_BANKS		1
include/configs/mx7ulp_evk.h +0 -3
index 37f365dc55..288a8894d1 100644
@@ -45,9 +45,6 @@
 #define CONFIG_ENV_IS_IN_MMC
 #define CONFIG_ENV_SIZE			SZ_8K
 
-#define CONFIG_CMD_FAT
-#define CONFIG_DOS_PARTITION
-
 /* Using ULP WDOG for reset */
 #define WDOG_BASE_ADDR			WDG1_RBASE
 
include/configs/novena.h +0 -1
index 6cb1807a8e..1f1bf15af7 100644
@@ -17,7 +17,6 @@
 #include "mx6_common.h"
 
 /* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_CMD_PCI
 #define CONFIG_CMD_SATA
 
include/configs/pic32mzdask.h +0 -2
index 2dcc6c4539..c5bfdec8fa 100644
@@ -90,8 +90,6 @@
  */
 /* FAT FS */
 #define CONFIG_SUPPORT_VFAT
-#define CONFIG_FS_FAT
-#define CONFIG_FAT_WRITE
 
 /* EXT4 FS */
 #define CONFIG_FS_EXT4
include/configs/picosam9g45.h +0 -1
index 998a7a344b..c83e559a5a 100644
@@ -116,7 +116,6 @@
 #define FAT_ENV_DEVICE_AND_PART	"0"
 #define FAT_ENV_FILE		"uboot.env"
 #define CONFIG_ENV_IS_IN_FAT
-#define CONFIG_FAT_WRITE
 #define CONFIG_ENV_SIZE		0x4000
 
 #define CONFIG_BOOTARGS		"console=ttyS0,115200 " \
include/configs/rcar-gen2-common.h +0 -1
index 3a719c0b37..365950d729 100644
@@ -14,7 +14,6 @@
 #define CONFIG_CMD_SDRAM
 
 /* Support File sytems */
-#define CONFIG_FAT_WRITE
 #define CONFIG_SUPPORT_VFAT
 #define CONFIG_FS_EXT4
 #define CONFIG_EXT4_WRITE
include/configs/rcar-gen3-common.h +0 -2
index e73bc61856..8da3e7a235 100644
@@ -13,7 +13,6 @@
 #include <asm/arch/rmobile.h>
 
 #define CONFIG_CMD_SDRAM
-#define CONFIG_CMD_FAT
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMD_EXT4
 #define CONFIG_CMD_EXT4_WRITE
@@ -24,7 +23,6 @@
 #define CONFIG_SUPPORT_RAW_INITRD
 
 /* Support File sytems */
-#define CONFIG_FAT_WRITE
 #define CONFIG_SUPPORT_VFAT
 #define CONFIG_FS_EXT4
 #define CONFIG_EXT4_WRITE
include/configs/rk3036_common.h +0 -2
index 2893f80c9f..836c5e3fed 100644
@@ -36,8 +36,6 @@
 /* MMC/SD IP block */
 #define CONFIG_BOUNCE_BUFFER
 
-#define CONFIG_FAT_WRITE
-
 #define CONFIG_SYS_SDRAM_BASE		0x60000000
 #define CONFIG_NR_DRAM_BANKS		1
 #define SDRAM_BANK_SIZE			(512UL << 20UL)
include/configs/rk3188_common.h +0 -2
index 81a1553390..a1e0eb7c8d 100644
@@ -61,8 +61,6 @@
 /* MMC/SD IP block */
 #define CONFIG_BOUNCE_BUFFER
 
-#define CONFIG_FAT_WRITE
-
 #define CONFIG_SYS_SDRAM_BASE		0x60000000
 #define CONFIG_NR_DRAM_BANKS		1
 #define SDRAM_BANK_SIZE			(2UL << 30)
include/configs/rk3288_common.h +0 -2
index 4cf71fa17e..ecf2675255 100644
@@ -38,8 +38,6 @@
 /* MMC/SD IP block */
 #define CONFIG_BOUNCE_BUFFER
 
-#define CONFIG_FAT_WRITE
-
 /* RAW SD card / eMMC locations. */
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	(128 << 10)
 
include/configs/rk3328_common.h +0 -2
index b0dcd48209..7ccbc9b241 100644
@@ -28,8 +28,6 @@
 #define CONFIG_BOUNCE_BUFFER
 
 #define CONFIG_SUPPORT_VFAT
-#define CONFIG_FS_FAT
-#define CONFIG_FAT_WRITE
 #define CONFIG_FS_EXT4
 
 /* RAW SD card / eMMC locations. */
include/configs/rk3399_common.h +0 -2
index 49f56f23de..7a8a442336 100644
@@ -43,8 +43,6 @@
 #define CONFIG_ROCKCHIP_SDHCI_MAX_FREQ	200000000
 
 #define CONFIG_SUPPORT_VFAT
-#define CONFIG_FS_FAT
-#define CONFIG_FAT_WRITE
 #define CONFIG_FS_EXT4
 
 /* RAW SD card / eMMC locations. */
include/configs/rpi.h +0 -1
index 7b9017ff99..d715eaad14 100644
@@ -97,7 +97,6 @@
 #define FAT_ENV_INTERFACE		"mmc"
 #define FAT_ENV_DEVICE_AND_PART		"0:1"
 #define FAT_ENV_FILE			"uboot.env"
-#define CONFIG_FAT_WRITE
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 #define CONFIG_SYS_LOAD_ADDR		0x1000000
 #define CONFIG_PREBOOT			"usb start"
include/configs/s5p_goni.h +0 -1
index e49b3d9580..c328e43dd6 100644
@@ -210,7 +210,6 @@
 #define CONFIG_SYS_ONENAND_BASE		0xB0000000
 
 /* write support for filesystems */
-#define CONFIG_FAT_WRITE
 #define CONFIG_EXT4_WRITE
 
 /* GPT */
include/configs/sama5d2_ptc.h +0 -4
index 57fa67d234..7607f94640 100644
@@ -77,10 +77,6 @@
 #define CONFIG_USB_ETH_RNDIS
 #define CONFIG_USBNET_MANUFACTURER      "Atmel SAMA5D2_PTC"
 
-#if defined(CONFIG_CMD_USB)
-#define CONFIG_CMD_FAT
-#endif
-
 /* Ethernet Hardware */
 #define CONFIG_MACB
 #define CONFIG_RMII
include/configs/sama5d3_xplained.h +0 -4
index 074c7568f0..fbe26cae21 100644
@@ -74,10 +74,6 @@
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	2
 #endif
 
-#if defined(CONFIG_CMD_USB) || defined(CONFIG_CMD_MMC)
-#define CONFIG_FAT_WRITE
-#endif
-
 #define CONFIG_SYS_LOAD_ADDR			0x22000000 /* load address */
 
 #if CONFIG_SYS_USE_NANDFLASH
include/configs/sama5d3xek.h +0 -4
index 9540a4a0ff..891d6a0f79 100644
@@ -101,10 +101,6 @@
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	3
 #endif
 
-#if defined(CONFIG_CMD_USB) || defined(CONFIG_CMD_MMC)
-#define CONFIG_FAT_WRITE
-#endif
-
 #define CONFIG_SYS_LOAD_ADDR			0x22000000 /* load address */
 
 #ifdef CONFIG_SYS_USE_SERIALFLASH
include/configs/sandbox.h +0 -2
index fbbd6cd99b..31ceb5402f 100644
@@ -29,8 +29,6 @@
 
 #define CONFIG_CMD_PCI
 
-#define CONFIG_FS_FAT
-#define CONFIG_FAT_WRITE
 #define CONFIG_FS_EXT4
 #define CONFIG_EXT4_WRITE
 #define CONFIG_HOST_MAX_DEVICES 4
include/configs/siemens-am33x-common.h +0 -1
index 9161867675..b5705b7169 100644
@@ -120,7 +120,6 @@
 
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME	"u-boot.img"
-#define CONFIG_FS_FAT
 
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x20000
include/configs/snapper9g45.h +0 -1
index 99b5b23d29..4e0b9b1252 100644
@@ -129,7 +129,6 @@
 /* Command line configuration */
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_DHCP
-#define CONFIG_CMD_FAT
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_MMC
include/configs/socfpga_arria10_socdk.h +1 -2
index 7ea780b48b..3b59b6a106 100644
@@ -8,8 +8,7 @@
 #define __CONFIG_SOCFGPA_ARRIA10_H__
 
 #include <asm/arch/base_addr_a10.h>
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
+
 #define CONFIG_HW_WATCHDOG
 
 /* Booting Linux */
include/configs/socfpga_arria5_socdk.h +0 -2
index b60d007478..fe4031910b 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_cyclone5_socdk.h +0 -2
index dfe4980b85..be56521121 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_de0_nano_soc.h +0 -2
index dd5933d43c..320c585a39 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_de10_nano.h +0 -2
index 302ec200bd..ef693b0038 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_de1_soc.h +0 -2
index 014828bc08..522ac74ffe 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_is1.h +0 -2
index 3585eeb3c4..68403aa744 100644
@@ -9,8 +9,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_mcvevk.h +0 -2
index 2d367026b6..ee85708b7a 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_sockit.h +0 -2
index c9fc5c90d9..c75acc0749 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_socrates.h +0 -2
index 5dc929852b..a08fa9ff4c 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_sr1500.h +0 -2
index 64e1595cbe..4366061f77 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-#define CONFIG_FAT_WRITE
-
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/socfpga_vining_fpga.h +0 -2
index 251dd0e901..e2bdfb12f9 100644
@@ -8,8 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_FAT_WRITE
 #define CONFIG_HW_WATCHDOG
 
 /* Memory configurations */
include/configs/sunxi-common.h +0 -2
index f042f0d0c2..9b514ff37a 100644
@@ -180,8 +180,6 @@
 
 #define CONFIG_SYS_MONITOR_LEN		(768 << 10)	/* 768 KiB */
 
-#define CONFIG_FAT_WRITE	/* enable write access */
-
 #define CONFIG_SPL_FRAMEWORK
 
 #ifndef CONFIG_ARM64		/* AArch64 FEL support is not ready yet */
include/configs/tegra-common-post.h +0 -3
index 1a4a7e2320..c03efd852a 100644
@@ -118,9 +118,6 @@
 #ifdef CONFIG_FS_EXT4
 #undef CONFIG_FS_EXT4
 #endif
-#ifdef CONFIG_FS_FAT
-#undef CONFIG_FS_FAT
-#endif
 
 /* remove USB */
 #ifdef CONFIG_USB_EHCI_TEGRA
include/configs/tegra-common.h +0 -1
index 7ca5c0b9da..723435e0ae 100644
@@ -99,7 +99,6 @@
 
 #ifndef CONFIG_SPL_BUILD
 #include <config_distro_defaults.h>
-#define CONFIG_FAT_WRITE
 #endif
 
 #endif /* _TEGRA_COMMON_H_ */
include/configs/ti816x_evm.h +0 -2
index 2303970d88..68eb08f812 100644
@@ -50,8 +50,6 @@
 
 #define CONFIG_CMD_ASKENV
 
-#define CONFIG_FS_FAT
-
 /*
  * Only one of the following two options (DDR3/DDR2) should be enabled
  * CONFIG_TI816X_EVM_DDR2
include/configs/ti_armv7_keystone2.h +0 -1
index 77ea9b9fe8..ac8dabd9ca 100644
@@ -196,7 +196,6 @@
 /* USB Configuration */
 #define CONFIG_USB_XHCI_KEYSTONE
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS	2
-#define CONFIG_FS_FAT
 #define CONFIG_USB_SS_BASE			KS2_USB_SS_BASE
 #define CONFIG_USB_HOST_XHCI_BASE		KS2_USB_HOST_XHCI_BASE
 #define CONFIG_DEV_USB_PHY_BASE			KS2_DEV_USB_PHY_BASE
include/configs/uniphier.h +0 -1
index bc57e8a73a..e45b506eba 100644
@@ -116,7 +116,6 @@
 
 /* USB */
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS	4
-#define CONFIG_FAT_WRITE
 
 /* SD/MMC */
 #define CONFIG_SUPPORT_EMMC_BOOT
include/configs/xilinx_zynqmp.h +0 -4
index 1b43620540..c56cd8c98b 100644
@@ -82,10 +82,6 @@
 # define FAT_ENV_INTERFACE		"mmc"
 #endif
 
-#if defined(CONFIG_MMC_SDHCI_ZYNQ) || defined(CONFIG_ZYNQMP_USB)
-# define CONFIG_FAT_WRITE
-#endif
-
 #ifdef CONFIG_NAND_ARASAN
 # define CONFIG_CMD_NAND_LOCK_UNLOCK
 # define CONFIG_SYS_MAX_NAND_DEVICE	1
include/configs/zynq-common.h +0 -1
index df4765c076..4b6b088851 100644
@@ -129,7 +129,6 @@
 
 #if defined(CONFIG_MMC_SDHCI_ZYNQ) || defined(CONFIG_ZYNQ_USB)
 # define CONFIG_SUPPORT_VFAT
-# define CONFIG_FAT_WRITE
 #endif
 
 #if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1)
include/fat.h +0 -3
index e38f3808af..71879f01ca 100644
@@ -18,9 +18,6 @@
 #define VFAT_MAXSEQ		9   /* Up to 9 of 13 2-byte UTF-16 entries */
 #define PREFETCH_BLOCKS		2
 
-#ifndef CONFIG_FS_FAT_MAX_CLUSTSIZE
-#define CONFIG_FS_FAT_MAX_CLUSTSIZE 65536
-#endif
 #define MAX_CLUSTSIZE	CONFIG_FS_FAT_MAX_CLUSTSIZE
 
 #define DIRENTSPERBLOCK	(mydata->sect_size / sizeof(dir_entry))
scripts/config_whitelist.txt +0 -3
index ee95359d79..e9531687f3 100644
@@ -854,7 +854,6 @@ CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE
 CONFIG_FASTBOOT_FLASH_NAND_DEV
 CONFIG_FASTBOOT_FLASH_NAND_TRIMFFS
 CONFIG_FAST_FLASH_BIT
-CONFIG_FAT_WRITE
 CONFIG_FB_ADDR
 CONFIG_FB_BACKLIGHT
 CONFIG_FB_DEFERRED_IO
@@ -985,8 +984,6 @@ CONFIG_FSMC_NAND_BASE
 CONFIG_FSMTDBLK
 CONFIG_FSNOTIFY
 CONFIG_FS_EXT4
-CONFIG_FS_FAT
-CONFIG_FS_FAT_MAX_CLUSTSIZE
 CONFIG_FS_POSIX_ACL
 CONFIG_FTAHBC020S
 CONFIG_FTAHBC020S_BASE
Signature · 1 line
2.11.0
#20 lore raw

PATCH 1/1 Kconfig: Migrate FS_FAT / FAT_WRITE

Quoted 5 lines · Tom Rini

Now that these symbols are in Kconfig, migrate all users. Use imply on a number of platforms that default to having this enabled. As part of this we must migrate some straglers for CMD_FAT and DOS_PARTITION.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170604/634e42ca/attachment.sig>