summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/pkg-generic.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index f8117dbab6..cca94ba338 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -58,8 +58,12 @@ GLOBAL_INSTRUMENTATION_HOOKS += step_time
# Hooks to collect statistics about installed files
define _step_pkg_size_get_file_list
- (cd $(TARGET_DIR) ; find . -type f -print0 | xargs -0 md5sum) | sort > \
- $1
+ (cd $(TARGET_DIR) ; \
+ ( \
+ find . -xtype f -print0 | xargs -0 md5sum ; \
+ find . -xtype d -print0 | xargs -0 -I{} printf 'directory {}\n'; \
+ ) \
+ ) | sort > $1
endef
# This hook will be called before the target installation of a
OpenPOWER on IntegriCloud