diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2013-08-15 18:04:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-16 11:44:16 +0100 |
commit | 855b3252d968e7bb93b4b318b7a26336dd8ea375 (patch) | |
tree | 96844e624521099806b340e18d79628b0c70eaad /meta/classes/populate_sdk_deb.bbclass | |
parent | 23575b4fdbeafcbd688d169775e6ca9aa51515b7 (diff) | |
download | poky-855b3252d968e7bb93b4b318b7a26336dd8ea375.tar.gz |
classes/buildhistory: record size of installed package not compressed archive
* usually it's more important to know how much space will each
package take on target device then size of compressed package
* example for libewebkit0 with 4 different architectures, interesting
that om_gta02 .ipk is bigger but it's smaller when installed
before:
MACHINE DEFAULTTUNE SIZE (.ipk file)
om_gta04 cortexa8t-neon 15996 KiB libewebkit0
qemux86_64 x86-64 16992 KiB libewebkit0
spitz xscale 16148 KiB libewebkit0
om_gta02 arm920t 16260 KiB libewebkit0
after:
MACHINE DEFAULTTUNE SIZE (installed)
om_gta04 cortexa8t-neon 60544 KiB libewebkit0
qemux86_64 x86-64 63720 KiB libewebkit0
spitz xscale 60588 KiB libewebkit0
om_gta02 arm920t 56268 KiB libewebkit0
(From OE-Core rev: 85e4a77138381a6086d5ebd3a28cb5a94bc26a19)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_deb.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_deb.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/populate_sdk_deb.bbclass b/meta/classes/populate_sdk_deb.bbclass index 3e123ac561..ec116ab187 100644 --- a/meta/classes/populate_sdk_deb.bbclass +++ b/meta/classes/populate_sdk_deb.bbclass | |||
@@ -75,13 +75,13 @@ list_installed_packages() { | |||
75 | # Here we want the PACKAGE_ARCH not the deb architecture | 75 | # Here we want the PACKAGE_ARCH not the deb architecture |
76 | ${DPKG_QUERY_COMMAND} -W -f='${Package} ${PackageArch}\n' | 76 | ${DPKG_QUERY_COMMAND} -W -f='${Package} ${PackageArch}\n' |
77 | elif [ "$1" = "file" ] ; then | 77 | elif [ "$1" = "file" ] ; then |
78 | ${DPKG_QUERY_COMMAND} -W -f='${Package} ${Package}_${Version}_${Architecture}.deb\n' | while read pkg pkgfile | 78 | ${DPKG_QUERY_COMMAND} -W -f='${Package} ${Package}_${Version}_${Architecture}.deb ${PackageArch}\n' | while read pkg pkgfile pkgarch |
79 | do | 79 | do |
80 | fullpath=`find ${DEPLOY_DIR_DEB} -name "$pkgfile" || true` | 80 | fullpath=`find ${DEPLOY_DIR_DEB} -name "$pkgfile" || true` |
81 | if [ "$fullpath" = "" ] ; then | 81 | if [ "$fullpath" = "" ] ; then |
82 | echo "$pkg $pkgfile" | 82 | echo "$pkg $pkgfile $pkgarch" |
83 | else | 83 | else |
84 | echo "$pkg $fullpath" | 84 | echo "$pkg $fullpath $pkgarch" |
85 | fi | 85 | fi |
86 | done | 86 | done |
87 | else | 87 | else |