]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: Add function to write out an image manifest
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 10 Nov 2008 21:39:34 +0000 (21:39 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 10 Nov 2008 21:39:34 +0000 (21:39 +0000)
meta/classes/image.bbclass
meta/classes/rootfs_ipk.bbclass

index 3678459380256db65e1ac9abb0e29afda166206e..2b057b93c53a9030739c4dc37df6b8c855161702 100644 (file)
@@ -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 () {
index 07f418adbddff8c3815ecfb7143bdfc5425dfd7f..66d3712b8d32ae518cc1f980f7ff4ab99cf5582e 100644 (file)
@@ -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/
 }