aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2015-06-25 13:46:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-27 22:42:54 +0100
commit01c9c7394dee8d70e91c3ec5688620f02d9cb811 (patch)
tree86038689711f53bf8fe330b3e1cc2ec644ef8997 /meta/classes/buildhistory.bbclass
parenta0537756aff353e42ddff271ab56951acf19cdc8 (diff)
downloadopenembedded-core-contrib-01c9c7394dee8d70e91c3ec5688620f02d9cb811.tar.gz
buildhistory.bbclass: Create a files-in-<pkg>.txt containg recipe's pkg files
A file similar (in format) to files-in-image.txt is created for each recipe's build package. This would allow to easily see what the recipe's package may install when including it into an image. These files reside on the specific buildhistory recipe package (i.e. buildhistory/packages/i586-poky-linux/busybox/busybox-dev/files-in-busybox-dev.txt for busybox-dev package) [YOCTO #5870] (From OE-Core rev: e013fe79cdf67429ff986d8ee6af510b34b31c9d) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 777aabc55d..8fc8a3ab08 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -242,6 +242,9 @@ python buildhistory_emit_pkghistory() {
pkginfo.size = int(pkgdata['PKGSIZE'])
write_pkghistory(pkginfo, d)
+
+ # Create files-in-<package-name>.txt files containing a list of files of each recipe's package
+ bb.build.exec_func("buildhistory_list_pkg_files", d)
}
@@ -435,6 +438,16 @@ buildhistory_list_files() {
( cd $1 && find . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 )
}
+buildhistory_list_pkg_files() {
+ file_prefix="files-in-"
+
+ # Create individual files-in-package for each recipe's package
+ for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
+ pkgname=$(basename ${pkgdir})
+ outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.txt"
+ buildhistory_list_files ${pkgdir} ${outfile}
+ done
+}
buildhistory_get_imageinfo() {
if [ "${@bb.utils.contains('BUILDHISTORY_FEATURES', 'image', '1', '0', d)}" = "0" ] ; then