@@ -62,8 +62,9 @@ GLOBAL_INSTRUMENTATION_HOOKS += step_time
# files currently installed in the target. Note that the MD5 is also
# stored, in order to identify if the files are overwritten.
define step_pkg_size_start
- (cd $(TARGET_DIR) ; find . -type f -print0 | xargs -0 md5sum) | sort > \
- $($(PKG)_DIR)/.br_filelist_before
+ (cd $($(call UPPERCASE,$(2))_DIR); \
+ find . -type f -print0 | xargs -0 md5sum) | sort > \
+ $($(PKG)_DIR)/.br_filelist_before
endef
# This hook will be called after the target installation of a
@@ -72,19 +73,19 @@ endef
# a diff with the .br_filelist_before to compute the list of files
# installed by this package.
define step_pkg_size_end
- (cd $(TARGET_DIR); find . -type f -print0 | xargs -0 md5sum) | sort > \
- $($(PKG)_DIR)/.br_filelist_after
+ (cd $($(call UPPERCASE,$(2))_DIR); \
+ find . -type f -print0 | xargs -0 md5sum) | sort > \
+ $($(PKG)_DIR)/.br_filelist_after
comm -13 $($(PKG)_DIR)/.br_filelist_before
$($(PKG)_DIR)/.br_filelist_after | \
while read hash file ; do \
echo "$(1),$${file}" ; \
- done >> $(BUILD_DIR)/packages-file-list.txt
+ done >> $(BUILD_DIR)/packages-file-list-$(2).txt
rm -f $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after
endef
define step_pkg_size
- $(if $(filter install-target,$(2)),\
- $(if $(filter start,$(1)),$(call step_pkg_size_start,$(3))) \
- $(if $(filter end,$(1)),$(call step_pkg_size_end,$(3))))
+ $(if $(filter install-%,$(2)),\
+ $(call step_pkg_size_$(1),$(3),$(subst install-,,$(2))))
endef
GLOBAL_INSTRUMENTATION_HOOKS += step_pkg_size