Convert CONFIG_CMD_SCSI to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 4 Aug 2017 22:34:44 +0000 (16:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Aug 2017 19:41:55 +0000 (15:41 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_SCSI

Also update the Makefile to use CONFIG_CMD_SCSI instead of CONFIG_SCSI to
enable the command, fixing an earlier error.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
[trini: Rework to default y if SCSI, drop cl-som-am57x which did not use
CMD_SCSI for real]
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/Kconfig
cmd/Makefile
configs/controlcenterdc_defconfig
configs/ls1012aqds_qspi_defconfig
include/configs/cl-som-am57x.h
include/configs/controlcenterdc.h
include/configs/ls1012aqds.h
include/configs/ls1012ardb.h
include/configs/ls1021aiot.h
include/configs/ls1043ardb.h
scripts/config_whitelist.txt

index 9efc2cf640866374245bdb9689c4d010e5afba82..cf89fd73d2142f9fb91e77773d4aa23e1c1ba984 100644 (file)
@@ -1290,6 +1290,15 @@ config CMD_REISER
            reiserls - list files
            reiserload - load a file
 
+config CMD_SCSI
+       bool "scsi - Access to SCSI devices"
+       default y if SCSI
+       help
+         This provides a 'scsi' command which provides access to SCSI (Small
+         Computer System Interface) devices. The command provides a way to
+         scan the bus, reset the bus, read and write data and get information
+         about devices.
+
 endmenu
 
 menu "Debug commands"
index eff6bd678ffc6c158fa2f1355e267f2628b4deb1..a85fe25ddaaa7b83a283ba1dfdba39a4d396f762 100644 (file)
@@ -106,7 +106,7 @@ obj-$(CONFIG_CMD_REMOTEPROC) += remoteproc.o
 obj-$(CONFIG_SANDBOX) += host.o
 obj-$(CONFIG_CMD_SATA) += sata.o
 obj-$(CONFIG_CMD_SF) += sf.o
-obj-$(CONFIG_SCSI) += scsi.o disk.o
+obj-$(CONFIG_CMD_SCSI) += scsi.o disk.o
 obj-$(CONFIG_CMD_SHA1SUM) += sha1sum.o
 obj-$(CONFIG_CMD_SETEXPR) += setexpr.o
 obj-$(CONFIG_CMD_SPI) += spi.o
index 98a0c0093028a5d575cb6ec6a0b9a65a332acce2..b28319f6cbf2355c2291df2d805fc60a4a1b06dc 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_CMD_TIME=y
 CONFIG_CMD_TPM=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
+CONFIG_CMD_SCSI=y
 CONFIG_EFI_PARTITION=y
 CONFIG_OF_BOARD_FIXUP=y
 CONFIG_SPL_OF_TRANSLATE=y
index 383fc1a95fcab974f889566d0a25e7130adda979..dfc378677d1f7b76f218672bcf43ad4c40cd2549 100644 (file)
@@ -29,6 +29,7 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_DATE=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
+CONFIG_CMD_SCSI=y
 CONFIG_OF_CONTROL=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
index 62bb2dbf33f22099b175b41efebad44b67154b04..49db5a964cbae36fdcc961a8900f87d4ff4fed25 100644 (file)
@@ -64,7 +64,6 @@
 
 #ifndef CONFIG_SPL_BUILD
 /* SATA */
-#define CONFIG_CMD_SCSI
 #define CONFIG_LIBATA
 #define CONFIG_SCSI_AHCI
 #define CONFIG_SCSI_AHCI_PLAT
index 979bb98850900c5af359a65a72179bf3108357af..715e9ed9c902b74196141776f9e343eb7f0703ea 100644 (file)
@@ -33,7 +33,6 @@
  * Commands configuration
  */
 #define CONFIG_CMD_I2C
-#define CONFIG_CMD_SCSI
 #define CONFIG_CMD_SPI
 
 /* SPI NOR flash default params, used by sf commands */
index 4a84e6c40a95b62331cc7018746c5f1ef7988a11..7bb65ab4d9b2bc42bbaca60a7a61ba9ab9bf86ca 100644 (file)
 #define CONFIG_LIBATA
 #define CONFIG_SCSI_AHCI
 #define CONFIG_SCSI_AHCI_PLAT
-#define CONFIG_CMD_SCSI
 
 #define CONFIG_SYS_SATA                                AHCI_BASE_ADDR
 
index f4ed0302a9943a5b29b8446ac05b89b7dbb889c0..e9edcd2bc943d6dcf7dbe0e7ac5788d1a7c5dc50 100644 (file)
@@ -52,7 +52,6 @@
 #define CONFIG_LIBATA
 #define CONFIG_SCSI_AHCI
 #define CONFIG_SCSI_AHCI_PLAT
-#define CONFIG_CMD_SCSI
 
 #define CONFIG_SYS_SATA                                AHCI_BASE_ADDR
 
index 4806168b88141dd265ae881155a14fc9c63ca158..33b62cdca236d555b070220f5ae5e0649a3cfbaf 100644 (file)
 #define CONFIG_FSL_ESDHC
 
 /* SATA */
-#define CONFIG_CMD_SCSI
 #define CONFIG_LIBATA
 #define CONFIG_SCSI_AHCI
 #define CONFIG_SCSI_AHCI_PLAT
index a4162a61b9a04c2222c2eec93816de6d752e4f36..ca1d862479c9cd146142ebe91e681450601e0d0e 100644 (file)
 #ifndef SPL_NO_SATA
 #define CONFIG_LIBATA
 #define CONFIG_SCSI_AHCI
-#define CONFIG_CMD_SCSI
 #ifndef CONFIG_CMD_EXT2
 #define CONFIG_CMD_EXT2
 #endif
index 2c255a705d8b55ff1545e166156bb26131c78122..f07f2764cdd09b0404a0f4f5eb8977eb5677f557 100644 (file)
@@ -293,7 +293,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_SCSI
 CONFIG_CMD_SDRAM
 CONFIG_CMD_SF_TEST
 CONFIG_CMD_SH_ZIMAGEBOOT