aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka2019-01-03 09:08:42 +0100
committerTom Rini2019-02-22 19:49:41 -0500
commit2ab6e74dbd667e77d88e3ffb1893515243e0c5ad (patch)
tree843de8548a76f9728676e97fcad769fc132555ae
parentfca0128da48031286f0cb2414ee6c94e9162943c (diff)
cmd: Kconfig: LED command depends on LED subsystems
Without CONFIG_LED, we get cmd/built-in.o: In function `show_led_state': cmd/led.c:40: undefined reference to `led_get_state' cmd/built-in.o: In function `do_led': cmd/led.c:99: undefined reference to `led_get_by_label' cmd/led.c:108: undefined reference to `led_set_state' Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
-rw-r--r--cmd/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 3ea42e42561..ed8d85bfa63 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1399,6 +1399,7 @@ config CMD_DISPLAY
config CMD_LED
bool "led"
+ depends on LED
default y if LED
help
Enable the 'led' command which allows for control of LEDs supported