summaryrefslogtreecommitdiffstats
path: root/rules/post
diff options
context:
space:
mode:
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_$(*)))