summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-01-27 20:28:40 +0200
committerTom Rini <trini@konsulko.com>2018-02-05 20:58:11 -0500
commita4fa8114632a008735142b12a29de1771a115209 (patch)
tree33dcdb516f2855e025b8497de87493410a650d0d /cmd
parent86c2f1e75b3bb8f099a3f915a34cd96b0348376f (diff)
cmd: Make CONFIG_CMD_FPGA depend on CONFIG_FPGA
cmd/Makefile has: ifdef CONFIG_FPGA obj-$(CONFIG_CMD_FPGA) += fpga.o endif which means that if CONFIG_FPGA is not set, CONFIG_CMD_FPGA silently does nothing. Let's remove that Makefile conditional and instead express this equivalent dependency in Kconfig, so a lot of redundant # CONFIG_CMD_FPGA is not set can be removed from board defconfigs that don't actually have an FPGA. Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig1
-rw-r--r--cmd/Makefile2
2 files changed, 1 insertions, 2 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 051c1b6457..790c40456d 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -616,6 +616,7 @@ config CMD_FLASH
config CMD_FPGA
bool "fpga"
+ depends on FPGA
default y
help
FPGA support.
diff --git a/cmd/Makefile b/cmd/Makefile
index 5ab47cbbf1..9a358e4801 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -55,9 +55,7 @@ obj-$(CONFIG_CMD_FDC) += fdc.o
obj-$(CONFIG_CMD_FDT) += fdt.o
obj-$(CONFIG_CMD_FITUPD) += fitupd.o
obj-$(CONFIG_CMD_FLASH) += flash.o
-ifdef CONFIG_FPGA
obj-$(CONFIG_CMD_FPGA) += fpga.o
-endif
obj-$(CONFIG_CMD_FPGAD) += fpgad.o
obj-$(CONFIG_CMD_FS_GENERIC) += fs.o
obj-$(CONFIG_CMD_FUSE) += fuse.o