aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-03-27 21:23:49 +0200
committerFelix Fietkau <nbd@nbd.name>2022-03-27 21:36:40 +0200
commitac11f36b337da29f422d16776cf36c98013dcc77 (patch)
tree6810f0a5e1b5e566cf4d2af45b3b558691687094
parent9caa6f0aa742253901c72f43eebecd2c8da5f127 (diff)
downloadupstream-ac11f36b337da29f422d16776cf36c98013dcc77.tar.gz
upstream-ac11f36b337da29f422d16776cf36c98013dcc77.tar.bz2
upstream-ac11f36b337da29f422d16776cf36c98013dcc77.zip
build: add support for passing C preprocessor flags for DTS builds
Useful for adding #ifdefs based on build system provided definitions, or for adding extra include paths Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--include/image.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index 275a0adcac..e5b52d0e97 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -184,6 +184,7 @@ endef
# $(4) extra DTC flags
define Image/BuildDTB
$(TARGET_CROSS)cpp -nostdinc -x assembler-with-cpp \
+ $(DTS_CPPFLAGS) \
-I$(DTS_DIR) \
-I$(DTS_DIR)/include \
-I$(LINUX_DIR)/include/ \