Skip to content

Commit

Permalink
build: add support for passing C preprocessor flags for DTS builds
Browse files Browse the repository at this point in the history
Useful for adding #ifdefs based on build system provided definitions, or
for adding extra include paths

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Mar 27, 2022
1 parent 9caa6f0 commit ac11f36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/image.mk
Expand Up @@ -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/ \
Expand Down

0 comments on commit ac11f36

Please sign in to comment.