Skip to contentSkip to conversation

cmd: Kconfig: LED command depends on LED subsystems

PATCH In review Jan Kiszka 2 participants 2 messages Jan 3, 2019 – Feb 23, 2019

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 cmd: Kconfig: LED command depends on LED subsystems

From: Jan Kiszka <[email protected]>

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'

---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index ea1a325eb3..e1c0719165 100644
@@ -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
Signature · 1 line
2.16.4
#1 lore raw
Quoted 11 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

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'

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190223/2ebcaeba/attachment.sig>