diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-07-09 17:25:41 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-07-16 21:24:43 +0200 |
commit | f50cd1449e9347309b1050b0b738882dac1954e9 (patch) | |
tree | b175944d7ca8a9d7cd411adc2021728afdfeea4d /rules/pre | |
parent | 23c16ce0af08610ddf99a5450627590d575ed775 (diff) | |
download | ptxdist-f50cd1449e9347309b1050b0b738882dac1954e9.tar.gz ptxdist-f50cd1449e9347309b1050b0b738882dac1954e9.tar.xz |
rework device-tree handling
It's not really possible to build a dtb by itself. A lot of included dtsi
and header files are needed. So build the device-trees with the package
that provides these files. Currently that's the kernel package.
This also means, that other kernel packages can have their own device-trees
as well.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pre')
-rw-r--r-- | rules/pre/000-cfghash.make | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rules/pre/000-cfghash.make b/rules/pre/000-cfghash.make index de212089b..60765d0c7 100644 --- a/rules/pre/000-cfghash.make +++ b/rules/pre/000-cfghash.make @@ -23,4 +23,19 @@ ptx/cfghash := ptx/cfghash-file := endif +# +# Add the specified file to the cfghash for the package. +# Only add files from the BSP, not the build tree. +# +define ptx/dts-cfghash-file +$(foreach dts,$(filter-out $(PTXDIST_PLATFORMDIR)/%, +$(call ptx/in-path,$(strip $(1))_DTS_PATH,$(2))), +$(call ptx/cfghash-file,$(1),$(dts))) +endef + +define world/dts-cfghash-file +$(foreach dts,$($(strip $(1))_DTS), +$(call ptx/dts-cfghash-file,$(strip $(1)),$(dts))) +endef + # vim: syntax=make |