summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2013-12-05 09:08:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-09 18:01:45 +0000
commit40b173c104d63e496469024722ff6ef5836a4e6b (patch)
tree182895643b34964bdab8b8c50de894dd08949aeb /meta/classes/buildhistory.bbclass
parentded655a00951146c1e27a649d440cc6bf814b8cf (diff)
downloadpoky-40b173c104d63e496469024722ff6ef5836a4e6b.tar.gz
buildhistory.bbclass/image.bbclass: remove obsolete codes
After 1b8e4abd2d9c0 [bitbake.conf/package: Collapse PKGDATA_DIR into a single machine specific directory], oe-pkgdata-util does not use target_suffix parameter, so do not need to loop the vendor (From OE-Core rev: 03c5f39b4d7dd8c81e0a130b7d5884e5af039a24) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@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.bbclass10
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 1e6d968520..757173ee2a 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -335,12 +335,10 @@ buildhistory_get_installed() {
335 printf "" > $1/installed-package-sizes.tmp 335 printf "" > $1/installed-package-sizes.tmp
336 cat $pkgcache | while read pkg pkgfile pkgarch 336 cat $pkgcache | while read pkg pkgfile pkgarch
337 do 337 do
338 for vendor in ${TARGET_VENDOR} ${MULTILIB_VENDORS} ; do 338 size=`oe-pkgdata-util read-value ${PKGDATA_DIR} "PKGSIZE" ${pkg}_${pkgarch}`
339 size=`oe-pkgdata-util read-value ${PKGDATA_DIR} "PKGSIZE" ${pkg}_${pkgarch}` 339 if [ "$size" != "" ] ; then
340 if [ "$size" != "" ] ; then 340 echo "$size $pkg" >> $1/installed-package-sizes.tmp
341 echo "$size $pkg" >> $1/installed-package-sizes.tmp 341 fi
342 fi
343 done
344 done 342 done
345 cat $1/installed-package-sizes.tmp | sort -n -r | awk '{print $1 "\tKiB " $2}' > $1/installed-package-sizes.txt 343 cat $1/installed-package-sizes.tmp | sort -n -r | awk '{print $1 "\tKiB " $2}' > $1/installed-package-sizes.txt
346 rm $1/installed-package-sizes.tmp 344 rm $1/installed-package-sizes.tmp