summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-01-09 14:08:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-12 15:52:21 +0100
commit32a54c87f4342e88ec7b6c480af27d9c197865b5 (patch)
tree2b1aac5afe4d28b09660bc5a3a0294577783daa1 /common/Makefile
parent4b63b5610c875e811f43f27e2af55326b5c36d86 (diff)
downloadbarebox-32a54c87f4342e88ec7b6c480af27d9c197865b5.tar.gz
common: deep-probe: don't build without CONFIG_OFDEVICE
We have a number of drivers that can be used with and without device trees. On AT91, some non-OF enabled configurations run from on-chip SRAM, which is limited to few tens of kilobytes in size. We need to be very size-concious there and having deep_probe_is_supported() as static inline helper evaluating to false when unused makes it easy to discard code that is not needed for the non-OF case. Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230109130822.1657470-9-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Makefile b/common/Makefile
index 25f5653f90..bd5b50bc3b 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -6,7 +6,7 @@ obj-y += memory_display.o
pbl-$(CONFIG_PBL_CONSOLE) += memory_display.o
obj-y += clock.o
obj-y += console_common.o
-obj-y += deep-probe.o
+obj-$(CONFIG_OFDEVICE) += deep-probe.o
obj-y += startup.o
obj-y += misc.o
obj-pbl-y += memsize.o