summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-08-21 10:50:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 12:36:11 +0100
commit1bfae0fd81b7a7ec3b56e1d35d02fa6294b0dc2a (patch)
tree538f1d8793797a36822404bf975747e7ad2424be /meta/classes
parent5d34d3257acd0616870eae963b17df27a434cb71 (diff)
downloadpoky-1bfae0fd81b7a7ec3b56e1d35d02fa6294b0dc2a.tar.gz
classes/buildhistory: tweak buildhistory_list_pkg_files
* Avoid using ${...} for shell variables (since they could be expanded as bitbake variables if present) * Use files-in-package.txt rather than files-in-<packagename>.txt; the file is already in a subdirectory named with the package name and this naming is consistent with that of files-in-image.txt. (From OE-Core rev: 6f3992728613c39403ef59bbcf1cb67d9e8c526b) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/buildhistory.bbclass14
1 files changed, 6 insertions, 8 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 054a81fdfc..3d459c715a 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -439,16 +439,14 @@ buildhistory_list_files() {
439} 439}
440 440
441buildhistory_list_pkg_files() { 441buildhistory_list_pkg_files() {
442 file_prefix="files-in-"
443
444 # Create individual files-in-package for each recipe's package 442 # Create individual files-in-package for each recipe's package
445 for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do 443 for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
446 pkgname=$(basename ${pkgdir}) 444 pkgname=$(basename $pkgdir)
447 outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}" 445 outfolder="${BUILDHISTORY_DIR_PACKAGE}/$pkgname"
448 outfile="${outfolder}/${file_prefix}${pkgname}.txt" 446 outfile="$outfolder/files-in-package.txt"
449 # Make sure the output folder, exist so we can create the files-in-$pkgname.txt file 447 # Make sure the output folder exists so we can create the file
450 if [ ! -d ${outfolder} ] ; then 448 if [ ! -d $outfolder ] ; then
451 bbdebug 2 "Folder ${outfolder} does not exist, file ${outfile} not created" 449 bbdebug 2 "Folder $outfolder does not exist, file $outfile not created"
452 continue 450 continue
453 fi 451 fi
454 buildhistory_list_files ${pkgdir} ${outfile} 452 buildhistory_list_files ${pkgdir} ${outfile}