From ac11f36b337da29f422d16776cf36c98013dcc77 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 27 Mar 2022 21:23:49 +0200 Subject: [PATCH] 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 --- include/image.mk | 1 + 1 file changed, 1 insertion(+) 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/ \ -- 2.30.2