[U-Boot] [PATCH 22/47] Convert CONFIG_CMD_FDC to Kconfig

Simon Glass
2017-05-15T10:57:37Z

This converts the following to Kconfig:
CONFIG_CMD_FDC

Signed-off-by: Simon Glass <sjg@chromium.org>
---

README | 1 -
cmd/Kconfig | 5 +++++
configs/PIP405_defconfig | 1 +
include/config_cmd_all.h | 1 -
include/configs/PIP405.h | 1 -
scripts/config_whitelist.txt | 1 -
6 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/README b/README
index d863984188..9073fac1aa 100644
--- a/README
+++ b/README
@@ -841,7 +841,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_FDC * Floppy Disk Support
CONFIG_CMD_FAT * FAT command support
CONFIG_CMD_FLASH flinfo, erase, protect
CONFIG_CMD_FPGA FPGA device initialization support
diff --git a/cmd/Kconfig b/cmd/Kconfig
index cc959f6a4a..99082c14f2 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -604,6 +604,11 @@ config CMD_GPIO
help
GPIO support.

+config CMD_FDC
+ bool "fdcboot - Boot from floppy device"
+ help
+ The 'fdtboot' command allows booting an image from a floppy disk.
+
endmenu

diff --git a/configs/PIP405_defconfig b/configs/PIP405_defconfig
index bd421eab9c..e366ac1355 100644
--- a/configs/PIP405_defconfig
+++ b/configs/PIP405_defconfig
@@ -14,6 +14,7 @@ CONFIG_HUSH_PARSER=y
CONFIG_CMD_EEPROM=y
CONFIG_CMD_I2C=y
CONFIG_CMD_USB=y
+CONFIG_CMD_FDC=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_DHCP=y
CONFIG_CMD_MII=y
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
index a824204913..9b3d88a1f8 100644
--- a/include/config_cmd_all.h
+++ b/include/config_cmd_all.h
@@ -13,7 +13,6 @@
* Alphabetical list of all possible commands.
*/

-#define CONFIG_CMD_FDC /* Floppy Disk Support */
#define CONFIG_CMD_FUSE /* Device fuse support */
#define CONFIG_CMD_GETTIME /* Get time since boot */
#define CONFIG_CMD_HASH /* calculate hash / digest */
diff --git a/include/configs/PIP405.h b/include/configs/PIP405.h
index 84b1a73033..eb1f0e26c5 100644
--- a/include/configs/PIP405.h
+++ b/include/configs/PIP405.h
@@ -41,7 +41,6 @@
#define CONFIG_CMD_PCI
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_REGINFO
-#define CONFIG_CMD_FDC
#define CONFIG_SCSI
#define CONFIG_CMD_SDRAM
#define CONFIG_CMD_SAVES
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index f59ebb083f..aa5c78f366 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -384,7 +384,6 @@ CONFIG_CM922T_XA10
CONFIG_CMDLINE_EDITING
CONFIG_CMDLINE_PS_SUPPORT
CONFIG_CMDLINE_TAG
-CONFIG_CMD_FDC
CONFIG_CMD_FDT_MAX_DUMP
CONFIG_CMD_FPGAD
CONFIG_CMD_FPGA_LOADBP
--
2.13.0.rc2.291.g57267f2277-goog