diff options
author | Roy Li <rongqing.li@windriver.com> | 2013-12-05 09:08:49 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-09 18:01:38 +0000 |
commit | 03c5f39b4d7dd8c81e0a130b7d5884e5af039a24 (patch) | |
tree | 0f9445904c626f16dcad7a9a965d3846d5c19395 /meta | |
parent | aca3d0bfd8335b7fd293d81c0647bf72b4de23d3 (diff) | |
download | openembedded-core-03c5f39b4d7dd8c81e0a130b7d5884e5af039a24.tar.gz openembedded-core-03c5f39b4d7dd8c81e0a130b7d5884e5af039a24.tar.bz2 openembedded-core-03c5f39b4d7dd8c81e0a130b7d5884e5af039a24.zip |
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
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 10 | ||||
-rw-r--r-- | meta/classes/image.bbclass | 4 |
2 files changed, 5 insertions, 9 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() { printf "" > $1/installed-package-sizes.tmp cat $pkgcache | while read pkg pkgfile pkgarch do - for vendor in ${TARGET_VENDOR} ${MULTILIB_VENDORS} ; do - size=`oe-pkgdata-util read-value ${PKGDATA_DIR} "PKGSIZE" ${pkg}_${pkgarch}` - if [ "$size" != "" ] ; then - echo "$size $pkg" >> $1/installed-package-sizes.tmp - fi - done + size=`oe-pkgdata-util read-value ${PKGDATA_DIR} "PKGSIZE" ${pkg}_${pkgarch}` + if [ "$size" != "" ] ; then + echo "$size $pkg" >> $1/installed-package-sizes.tmp + fi done cat $1/installed-package-sizes.tmp | sort -n -r | awk '{print $1 "\tKiB " $2}' > $1/installed-package-sizes.txt rm $1/installed-package-sizes.tmp diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index cc65e3566d..168f283696 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -506,9 +506,7 @@ rootfs_install_complementary() { if [ "$GLOBS" != "" ] ; then # Use the magic script to do all the work for us :) : > ${WORKDIR}/complementary_pkgs.txt - for vendor in '${TARGET_VENDOR}' ${MULTILIB_VENDORS} ; do - oe-pkgdata-util glob ${PKGDATA_DIR} ${WORKDIR}/installed_pkgs.txt "$GLOBS" >> ${WORKDIR}/complementary_pkgs.txt - done + oe-pkgdata-util glob ${PKGDATA_DIR} ${WORKDIR}/installed_pkgs.txt "$GLOBS" >> ${WORKDIR}/complementary_pkgs.txt # Install the packages, if any sed -i '/^$/d' ${WORKDIR}/complementary_pkgs.txt |