summaryrefslogtreecommitdiff
path: root/packages/images/unslung-image.bb
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2006-08-02 04:32:57 +0000
committerMike Westerhof <mwester@dls.net>2006-08-02 04:32:57 +0000
commit0bcc06870688383d46cafdbaf458e28b2dc33649 (patch)
tree9ce4f13114bded60b852434b23bb5c3bb8620b14 /packages/images/unslung-image.bb
parent0fe2c861b31baa7c6083223d0a995f2ebe2d51bf (diff)
Unslung: unslung-image.bb - remove cpio and findutils records from ipkg database, and some other ipkg database cleanup.
Diffstat (limited to 'packages/images/unslung-image.bb')
-rw-r--r--packages/images/unslung-image.bb20
1 files changed, 15 insertions, 5 deletions
diff --git a/packages/images/unslung-image.bb b/packages/images/unslung-image.bb
index 701e7f17ea..a704f00479 100644
--- a/packages/images/unslung-image.bb
+++ b/packages/images/unslung-image.bb
@@ -1,5 +1,5 @@
LICENSE = MIT
-PR = "r19"
+PR = "r20"
IMAGE_BASENAME = "unslung"
@@ -34,10 +34,15 @@ unslung_clean_image () {
# Remove the kernel image
rm -rf ${IMAGE_ROOTFS}/boot
+ rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/alternatives/zImage
# And remove the post and pre scripts for the kernel; saves flash space
rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/info/kernel.postinst
rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/info/kernel.postrm
+ # Remove all the postinst scripts; don't need them. But keep the
+ # postrm scripts just in case we need to remove something.
+ rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/info/*.postinst
+
# Remove info from the local feed used to build the image
rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/lists/*
rm -f ${IMAGE_ROOTFS}/${sysconfdir}/version
@@ -67,19 +72,24 @@ unslung_clean_image () {
${STRIP} ${IMAGE_ROOTFS}/lib/libgcc_s.so.1
chmod ugo+x ${IMAGE_ROOTFS}/lib/libgcc_s.so.1
- # We need cpio and find, but we don't need any of the other stuff in the
- # packages (users can install the full package with ipkg after unsling).
- # (make sure that if the package is not included (i.e. using slingbox
- # instead) that the files are not deleted; they might be part of slingbox)
+ # We need cpio and find, but we don't need any of the other stuff in
+ # the packages (users can install the full package with ipkg after
+ # unsling). Remove the extra files and executables, and clean up
+ # the entries from the ipkg database manually.
#-- these are for cpio:
rm -f ${IMAGE_ROOTFS}/usr/bin/mt
rm -rf ${IMAGE_ROOTFS}/usr/libexec
+ rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/info/cpio.*
+ rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/alternatives/rmt
+ sed -i -e '/^Package: cpio/,/^$/d' ${IMAGE_ROOTFS}${libdir}/ipkg/status
#-- and these for find:
rm -f ${IMAGE_ROOTFS}/usr/bin/locate
rm -f ${IMAGE_ROOTFS}/usr/bin/updatedb
rm -f ${IMAGE_ROOTFS}/usr/bin/xargs
+ rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/info/findutils.*
+ sed -i -e '/^Package: findutils/,/^$/d' ${IMAGE_ROOTFS}${libdir}/ipkg/status
# FIXME: change made 24 Jul 2006 by the OE folks changes the "strip"
# behavior to create an extra file named .debug/<filename> containing