build: add support for passing C preprocessor flags for DTS builds
authorFelix Fietkau <nbd@nbd.name>
Sun, 27 Mar 2022 19:23:49 +0000 (21:23 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 27 Mar 2022 19:36:40 +0000 (21:36 +0200)
Useful for adding #ifdefs based on build system provided definitions, or
for adding extra include paths

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/image.mk

index 275a0adcac9e7581153791c876a565d535450b7a..e5b52d0e97c6c7b6794c538e6944d7417fcb6cf3 100644 (file)
@@ -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/ \