summaryrefslogtreecommitdiffstats
path: root/rules/pre
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-04-04 10:40:52 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-04-04 14:34:43 +0200
commit4c5bee070c00d578ca7168431c51d985a91cef3a (patch)
tree080500c9b0931a657bf3d8a03918598972c47929 /rules/pre
parentd0bc370b236f8b7e2e2a0ed9277eca7d6acd411b (diff)
downloadptxdist-4c5bee070c00d578ca7168431c51d985a91cef3a.tar.gz
ptxdist-4c5bee070c00d578ca7168431c51d985a91cef3a.tar.xz
rules: support older make versions that don't support $(file ..)
For example make 3.82 from CentOS 7 does not support $(file ..). Provide a (slower) fallback for those cases. For some things use ptx/file as fallback. However, this is very slow, so it cannot be called for every PTXCONF variable. So fallback to the old, less optimal handling in that case. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pre')
-rw-r--r--rules/pre/000-cfghash.make4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/pre/000-cfghash.make b/rules/pre/000-cfghash.make
index 07672d7e4..de212089b 100644
--- a/rules/pre/000-cfghash.make
+++ b/rules/pre/000-cfghash.make
@@ -12,11 +12,11 @@
#
ifdef PTXDIST_SETUP_ONCE
define ptx/cfghash
-$(file >>$(PTXDIST_TEMPDIR)/pkghash-$(strip $(1)),$(strip $(2)))
+$(call ptx/file,>>$(PTXDIST_TEMPDIR)/pkghash-$(strip $(1)),$(strip $(2)))
endef
define ptx/cfghash-file
-$(file >>$(PTXDIST_TEMPDIR)/pkghash.list,CONFIG: $(strip $(1)) $(strip $(2)))
+$(call ptx/file,>>$(PTXDIST_TEMPDIR)/pkghash.list,CONFIG: $(strip $(1)) $(strip $(2)))
endef
else
ptx/cfghash :=