projects
/
openwrt
/
staging
/
svanheule.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9caa6f0
)
build: add support for passing C preprocessor flags for DTS builds
author
Felix Fietkau
<nbd@nbd.name>
Sun, 27 Mar 2022 19:23:49 +0000
(21:23 +0200)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/include/image.mk
b/include/image.mk
index 275a0adcac9e7581153791c876a565d535450b7a..e5b52d0e97c6c7b6794c538e6944d7417fcb6cf3 100644
(file)
--- 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/ \