summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-11-26 12:09:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-26 23:01:32 +0000
commit960e305d9abbbeed0ed2d5251ff94cf1719e5159 (patch)
treef87d43abb5a24f12b58d73e934ee2bb05456fa75 /meta/classes/rootfs_ipk.bbclass
parentbbbd6fc1d1342936b583289c6dcaf7b4ea60eb5c (diff)
downloadpoky-960e305d9abbbeed0ed2d5251ff94cf1719e5159.tar.gz
classes/image: write image manifest
Write a list of installed packages to a .manifest file next to the image, so we can find out what went into the image after it has been constructed without necessarily having to have buildhistory enabled (although that will provide more detail.) We can make use of this for example in the testimage class associated code that checks for installed packages for determining whether or not to run specific tests. Note: this replaces the previous ipk-specific manifest code with something that works for ipk, rpm and deb, and instead of a pruned status file, packages are listed one per line, in the following format: <packagename> <packagearch> <version> Tests for all three backends have shown that the performance impact of this change is negligible (about 1.5s max). Implements [YOCTO #5410] (From OE-Core rev: 2978d1f2617a33e2e3a77e249d73e998d79b4ec9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r--meta/classes/rootfs_ipk.bbclass14
1 files changed, 0 insertions, 14 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 6ce3e5d908..dbe1c798a6 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -118,20 +118,6 @@ save_postinsts () {
118 done 118 done
119} 119}
120 120
121rootfs_ipk_write_manifest() {
122 manifest=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest
123 cp ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg/status $manifest
124
125 sed '/Depends/d' -i $manifest
126 sed '/Status/d' -i $manifest
127 sed '/Architecture/d' -i $manifest
128 sed '/Installed-Time/d' -i $manifest
129 sed '/Auto-Installed/d' -i $manifest
130 sed '/Recommends/d' -i $manifest
131 sed '/Provides/d' -i $manifest
132 sed '/Conflicts/d' -i $manifest
133}
134
135remove_packaging_data_files() { 121remove_packaging_data_files() {
136 rm -rf ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg 122 rm -rf ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg
137 # We need the directory for the package manager lock 123 # We need the directory for the package manager lock