summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-11-16 19:48:39 -0500
committerTom Rini <trini@konsulko.com>2019-11-19 17:43:04 -0500
commit30b59dd8ba1b5272e4ac058f2c3ed768085c15d6 (patch)
tree8cd8cc1858171350e30d16828b3f5174a06473c6
parent99f9682cae45604ed3ad923cf2caa8fdd0e273e3 (diff)
downloadu-boot-30b59dd8ba1b5272e4ac058f2c3ed768085c15d6.tar.gz
u-boot-30b59dd8ba1b5272e4ac058f2c3ed768085c15d6.tar.bz2
u-boot-30b59dd8ba1b5272e4ac058f2c3ed768085c15d6.zip
input: Move input.o to be built only in some cases
We only need to build and link input.o when we have any of CONFIG_KEYBOARD, CONFIG_DM_KEYBOARD (and SPL/TPL variants) or CONFIG_TEGRA_KEYBOARD set. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--drivers/input/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/Makefile b/drivers/input/Makefile
index fd56d7b349..e440c921e4 100644
--- a/drivers/input/Makefile
+++ b/drivers/input/Makefile
@@ -3,15 +3,15 @@
# (C) Copyright 2000-2007
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-obj-y += input.o
+obj-$(CONFIG_KEYBOARD) += input.o
obj-$(CONFIG_$(SPL_TPL_)CROS_EC_KEYB) += cros_ec_keyb.o
obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += key_matrix.o
-obj-$(CONFIG_$(SPL_TPL_)DM_KEYBOARD) += keyboard-uclass.o
+obj-$(CONFIG_$(SPL_TPL_)DM_KEYBOARD) += input.o keyboard-uclass.o
ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_I8042_KEYB) += i8042.o
-obj-$(CONFIG_TEGRA_KEYBOARD) += tegra-kbc.o
+obj-$(CONFIG_TEGRA_KEYBOARD) += input.o tegra-kbc.o
obj-$(CONFIG_TWL4030_INPUT) += twl4030.o
obj-$(CONFIG_TWL6030_INPUT) += twl6030.o
endif