From: Jan Kiszka Date: Thu, 3 Jan 2019 09:08:42 +0100 Subject: [U-Boot] [PATCH] cmd: Kconfig: LED command depends on LED subsystems Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Jan Kiszka 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 --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index ea1a325eb3..e1c0719165 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 -- 2.16.4