diff options
author | Andres Beltran <abeltran@linux.microsoft.com> | 2021-08-12 16:58:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-27 11:54:34 +0100 |
commit | 37e0565c11240a3e1e1acec338d9695666757fa3 (patch) | |
tree | 9954345537c369b54397537062c64b652b15fb17 /meta/classes/buildhistory.bbclass | |
parent | 51a174f501e00c0fb1ccbcea04bf58e361b99bbb (diff) | |
download | poky-37e0565c11240a3e1e1acec338d9695666757fa3.tar.gz |
buildhistory: Add output file listing package information
Currently, buildhistory does not produce a single file combining relevant
information of installed packages. Produce an output file
"installed-package-info.txt" listing a package's runtime name, buildtime name,
its recipe, version, and size to avoid having to look up each package externally.
Leave the existing package list files as-is for backwards compatibility.
In order to support this efficiently, extend oe-pkgdata-util to accept multiple keys
for its read-value argument.
(From OE-Core rev: 1e18b514bf1f960d324a21db608c8e8e5af007ef)
Signed-off-by: Andres Beltran <abeltran@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 5099e70fb7..cdcf99a499 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -499,6 +499,11 @@ buildhistory_get_installed() { | |||
499 | cat $1/installed-package-sizes.tmp | awk '{print $2 "\tKiB\t" $1}' | sort -n -r > $1/installed-package-sizes.txt | 499 | cat $1/installed-package-sizes.tmp | awk '{print $2 "\tKiB\t" $1}' | sort -n -r > $1/installed-package-sizes.txt |
500 | rm $1/installed-package-sizes.tmp | 500 | rm $1/installed-package-sizes.tmp |
501 | 501 | ||
502 | # Produce package info: runtime_name, buildtime_name, recipe, version, size | ||
503 | oe-pkgdata-util -p ${PKGDATA_DIR} read-value "PACKAGE,PN,PV,PKGSIZE" -n -f $pkgcache > $1/installed-package-info.tmp | ||
504 | cat $1/installed-package-info.tmp | sort -n -r -k 5 > $1/installed-package-info.txt | ||
505 | rm $1/installed-package-info.tmp | ||
506 | |||
502 | # We're now done with the cache, delete it | 507 | # We're now done with the cache, delete it |
503 | rm $pkgcache | 508 | rm $pkgcache |
504 | 509 | ||