summaryrefslogtreecommitdiffstats
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
parente4374351581fd54ffd1d0da9b11efe7b7f578ff4 (diff)
downloadpoky-793dc948e6d564ae65c71ab93999d928187eb2bc.tar.gz
image.bbclass: Add function to write out an image manifest
-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 () {
199 fi 199 fi
200} 200}
201 201
202write_image_manifest () {
203 rootfs_${IMAGE_PKGTYPE}_write_manifest
204
205 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manifest
206 ln -s ${IMAGE_NAME}.rootfs.manifest ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manfiest
207}
208
202# Make login manager(s) enable automatic login. 209# Make login manager(s) enable automatic login.
203# Useful for devices where we do not want to log in at all (e.g. phones) 210# Useful for devices where we do not want to log in at all (e.g. phones)
204set_image_autologin () { 211set_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() {
98 true 98 true
99} 99}
100 100
101rootfs_ipk_write_manifest() {
102 manifest=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest
103 cp ${IMAGE_ROOTFS}/usr/lib/opkg/status $manifest
104
105 sed '/Depends/d' -i $manifest
106 sed '/Status/d' -i $manifest
107 sed '/Architecture/d' -i $manifest
108 sed '/Installed-Time/d' -i $manifest
109 sed '/Auto-Installed/d' -i $manifest
110 sed '/Recommends/d' -i $manifest
111 sed '/Provides/d' -i $manifest
112 sed '/Conflicts/d' -i $manifest
113}
114
101remove_packaging_data_files() { 115remove_packaging_data_files() {
102 rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/ 116 rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/
103} 117}