summaryrefslogtreecommitdiffstats
path: root/rules/post
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-07-02 13:57:17 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-07-10 13:53:59 +0200
commita49969a3cc4854e3c1729bafb8b71dbed67d47cf (patch)
treeb53db8d4c9501e44977f4eabbeac356707fdd114 /rules/post
parenta835af354d8b2413744dd54f18db4fc72b288daa (diff)
downloadptxdist-a49969a3cc4854e3c1729bafb8b71dbed67d47cf.tar.gz
ptxdist-a49969a3cc4854e3c1729bafb8b71dbed67d47cf.tar.xz
improve dependency handling
Check the content of make and in files for packages in addition to the package options to trigger the prepare stage. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/post')
-rw-r--r--rules/post/ptxd_make_world_common.make1
-rw-r--r--rules/post/ptxd_make_world_prepare.make9
2 files changed, 10 insertions, 0 deletions
diff --git a/rules/post/ptxd_make_world_common.make b/rules/post/ptxd_make_world_common.make
index 9ab4faf9f..c992db27d 100644
--- a/rules/post/ptxd_make_world_common.make
+++ b/rules/post/ptxd_make_world_common.make
@@ -80,6 +80,7 @@ world/env/impl = \
pkg_srcs="$(call ptx/escape,$($(1)_SOURCES))" \
pkg_md5="$(call ptx/escape,$($(1)_MD5))" \
pkg_url="$(call ptx/escape,$($(1)_URL))" \
+ pkg_cfghash="$(call ptx/escape,$($(1)_CFGHASH))" \
\
pkg_dir="$(call ptx/escape,$($(1)_DIR))" \
pkg_subdir="$(call ptx/escape,$($(1)_SUBDIR))" \
diff --git a/rules/post/ptxd_make_world_prepare.make b/rules/post/ptxd_make_world_prepare.make
index f88c75c03..248282c4d 100644
--- a/rules/post/ptxd_make_world_prepare.make
+++ b/rules/post/ptxd_make_world_prepare.make
@@ -8,6 +8,15 @@
# see the README file.
#
+world/cfghash = \
+ +$(call world/env, $1) \
+ ptxd_make_world_cfghash
+
+$(STATEDIR)/%.cfghash:
+ @$(call targetinfo)
+ @$(call world/cfghash, $(PTX_MAP_TO_PACKAGE_$(basename $(*))))
+ @$(call touch)
+
$(STATEDIR)/%.prepare:
@$(call targetinfo)
@$(call world/prepare, $(PTX_MAP_TO_PACKAGE_$(*)))