提交 2ab6e74d 编写于 作者: J Jan Kiszka 提交者: Tom Rini

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: NJan Kiszka <jan.kiszka@siemens.com>
上级 fca0128d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册