From: Felix Fietkau Date: Sun, 27 Mar 2022 19:23:49 +0000 (+0200) Subject: build: add support for passing C preprocessor flags for DTS builds X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ac11f36b337da29f422d16776cf36c98013dcc77;p=openwrt%2Fstaging%2Fnbd.git 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 --- 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/ \