summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDenis Osterland-Heim <denis.osterland@diehl.com>2020-07-20 06:43:39 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-12 11:44:38 +0200
commit2a71a57e7932a2439530087864cd39f2f2f084aa (patch)
tree4f5dbbf5fb1229be04ca609d6192c8beb1b2ce80 /scripts
parentee667015eb6f3ee30152d8810e678e1b7e88056c (diff)
downloadbarebox-2a71a57e7932a2439530087864cd39f2f2f084aa.tar.gz
barebox-2a71a57e7932a2439530087864cd39f2f2f084aa.tar.xz
dtc_cpp: allow to pass options per target
This patch adds support to pass extra option per target to DTC CPP. For example: DTC_CPP_FLAGS_my-board-name.dtb := -DMY_DEFINE=extra lwl-dtb-$(CONFIG_MACH_MY_BOARD_NAME) += my-board-name.dtb.o Signed-off-by: Denis Osterland-Heim <Denis.Osterland@diehl.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 3799e777cd..337430cd00 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -184,6 +184,7 @@ dtc_cpp_flags = -Wp,-MD,$(depfile).pre -nostdinc \
-I$(srctree)/dts/include \
-I$(srctree)/include \
-I$(srctree)/dts/src/ \
+ $(DTC_CPP_FLAGS_$(basetarget).dtb) \
-undef -D__DTS__
ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY