summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/board/Makefile
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2021-03-09 09:01:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-03-16 11:31:22 +0100
commite51994f1cca03bb4e87dfaac2ebbbaf94077c08c (patch)
treef6ff63e92a0cdaa8951c3d01af9bc65df32ab891 /arch/sandbox/board/Makefile
parent1813937c953703bf88a89c671b64d73e9e89ca8a (diff)
downloadbarebox-e51994f1cca03bb4e87dfaac2ebbbaf94077c08c.tar.gz
barebox-e51994f1cca03bb4e87dfaac2ebbbaf94077c08c.tar.xz
sandbox: add Xterm escape sequence backed LED driver
There is value in testing LED trigger conditions in sandbox, especially with the coming bthread work that should replace pollers, like the one used by the heartbeat trigger. To make this testable on sandbox as well, add a simple LED driver. It supports 5 brightness levels, which are reflected as dots in the terminal title. This requires a Xterm compatible terminal, but the LED is inactive by default, so other terminals aren't affected if they lack support. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/board/Makefile')
-rw-r--r--arch/sandbox/board/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/board/Makefile b/arch/sandbox/board/Makefile
index c504c967de..ffb1dbc21e 100644
--- a/arch/sandbox/board/Makefile
+++ b/arch/sandbox/board/Makefile
@@ -7,5 +7,6 @@ obj-y += dtb.o
obj-y += power.o
obj-y += dev-random.o
obj-y += watchdog.o
+obj-$(CONFIG_LED) += led.o
extra-y += barebox.lds