diff options
| -rw-r--r-- | meta/classes/buildhistory.bbclass | 13 |
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() { | |||
| 242 | pkginfo.size = int(pkgdata['PKGSIZE']) | 242 | pkginfo.size = int(pkgdata['PKGSIZE']) |
| 243 | 243 | ||
| 244 | write_pkghistory(pkginfo, d) | 244 | write_pkghistory(pkginfo, d) |
| 245 | |||
| 246 | # Create files-in-<package-name>.txt files containing a list of files of each recipe's package | ||
| 247 | bb.build.exec_func("buildhistory_list_pkg_files", d) | ||
| 245 | } | 248 | } |
| 246 | 249 | ||
| 247 | 250 | ||
| @@ -435,6 +438,16 @@ buildhistory_list_files() { | |||
| 435 | ( cd $1 && find . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 ) | 438 | ( cd $1 && find . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 ) |
| 436 | } | 439 | } |
| 437 | 440 | ||
| 441 | buildhistory_list_pkg_files() { | ||
| 442 | file_prefix="files-in-" | ||
| 443 | |||
| 444 | # Create individual files-in-package for each recipe's package | ||
| 445 | for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do | ||
| 446 | pkgname=$(basename ${pkgdir}) | ||
| 447 | outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.txt" | ||
| 448 | buildhistory_list_files ${pkgdir} ${outfile} | ||
| 449 | done | ||
| 450 | } | ||
| 438 | 451 | ||
| 439 | buildhistory_get_imageinfo() { | 452 | buildhistory_get_imageinfo() { |
| 440 | if [ "${@bb.utils.contains('BUILDHISTORY_FEATURES', 'image', '1', '0', d)}" = "0" ] ; then | 453 | if [ "${@bb.utils.contains('BUILDHISTORY_FEATURES', 'image', '1', '0', d)}" = "0" ] ; then |
