summaryrefslogtreecommitdiffstats
path: root/rules/pre/000-cfghash.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/pre/000-cfghash.make')
-rw-r--r--rules/pre/000-cfghash.make15
1 files changed, 15 insertions, 0 deletions
diff --git a/rules/pre/000-cfghash.make b/rules/pre/000-cfghash.make
index de212089b..81fc14b05 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