summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-11-10 21:39:34 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-11-10 21:39:34 +0000
commit793dc948e6d564ae65c71ab93999d928187eb2bc (patch)
treef076098c7e28d148cbea9dd658a7a5f73177226c /meta/classes
parente4374351581fd54ffd1d0da9b11efe7b7f578ff4 (diff)
downloadopenembedded-core-793dc948e6d564ae65c71ab93999d928187eb2bc.tar.gz
openembedded-core-793dc948e6d564ae65c71ab93999d928187eb2bc.tar.bz2
openembedded-core-793dc948e6d564ae65c71ab93999d928187eb2bc.zip
image.bbclass: Add function to write out an image manifest
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image.bbclass7
-rw-r--r--meta/classes/rootfs_ipk.bbclass14
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 3678459380..2b057b93c5 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -199,6 +199,13 @@ make_zimage_symlink_relative () {
fi
}
+write_image_manifest () {
+ rootfs_${IMAGE_PKGTYPE}_write_manifest
+
+ rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manifest
+ ln -s ${IMAGE_NAME}.rootfs.manifest ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manfiest
+}
+
# Make login manager(s) enable automatic login.
# Useful for devices where we do not want to log in at all (e.g. phones)
set_image_autologin () {
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 07f418adbd..66d3712b8d 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -98,6 +98,20 @@ rootfs_ipk_log_check() {
true
}
+rootfs_ipk_write_manifest() {
+ manifest=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest
+ cp ${IMAGE_ROOTFS}/usr/lib/opkg/status $manifest
+
+ sed '/Depends/d' -i $manifest
+ sed '/Status/d' -i $manifest
+ sed '/Architecture/d' -i $manifest
+ sed '/Installed-Time/d' -i $manifest
+ sed '/Auto-Installed/d' -i $manifest
+ sed '/Recommends/d' -i $manifest
+ sed '/Provides/d' -i $manifest
+ sed '/Conflicts/d' -i $manifest
+}
+
remove_packaging_data_files() {
rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/
}