[oe-commits] org.oe.dev unslung-kernel, unslung-image: Changed to use the generic nslu2_pack_image class.
rwhitby commit
openembedded-commits at lists.openembedded.org
Tue Mar 27 02:23:09 UTC 2007
unslung-kernel, unslung-image: Changed to use the generic nslu2_pack_image class.
Author: rwhitby at nslu2-linux.org
Branch: org.openembedded.dev
Revision: 85b8018eeb7c26ac93085cdca7697da6f8cbf31a
ViewMTN: http://monotone.openembedded.org/revision.psp?id=85b8018eeb7c26ac93085cdca7697da6f8cbf31a
Files:
1
packages/images/unslung-image.bb
packages/linux/unslung-kernel_2.4.22.l2.3r63.bb
Diffs:
#
# mt diff -r2e622ef10cd93ca53c02e4692c7431e752f0e540 -r85b8018eeb7c26ac93085cdca7697da6f8cbf31a
#
#
#
# patch "packages/images/unslung-image.bb"
# from [8388161963b4cea37c9d7f093f0d421d23a65e3a]
# to [30e4a2f985ea68e0f0083f145f46ff64b1721c32]
#
# patch "packages/linux/unslung-kernel_2.4.22.l2.3r63.bb"
# from [b96398b403be656e05d9b24a0decccd597e277a6]
# to [9c573119e7392c00e18cf949f04113d2eb096c9b]
#
============================================================
--- packages/images/unslung-image.bb 8388161963b4cea37c9d7f093f0d421d23a65e3a
+++ packages/images/unslung-image.bb 30e4a2f985ea68e0f0083f145f46ff64b1721c32
@@ -12,17 +12,11 @@ RDEPENDS = "kernel update-modules unslu
${UNSLUNG_EXTRA_DEPENDS}"
RDEPENDS = "kernel update-modules unslung-rootfs \
- libc6-unslung slingbox ipkg \
- libipkg \
-# cpio \
-# findutils \
+ libc6-unslung slingbox ipkg libipkg \
${UNSLUNG_EXTRA_RDEPENDS}"
PACKAGE_INSTALL = "kernel update-modules unslung-rootfs \
- libc6-unslung slingbox ipkg \
- libipkg \
-# cpio \
-# findutils \
+ libc6-unslung slingbox ipkg libipkg \
kernel-module-netconsole \
${UNSLUNG_EXTRA_INSTALL}"
@@ -76,27 +70,6 @@ unslung_clean_image () {
${STRIP} ${IMAGE_ROOTFS}/lib/libgcc_s.so.1
chmod ugo+x ${IMAGE_ROOTFS}/lib/libgcc_s.so.1
-# MJW - experimental right now, but no longer need cpio and find
- # 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}/usr/bin/xargs.findutils
-# 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
# the stripped symbols. These files are supposed to be packaged
@@ -120,20 +93,3 @@ unslung_clean_image () {
# #### End of Hack!
}
-
-nslu2_pack_image () {
- install -d ${DEPLOY_DIR_IMAGE}/slug
- install -m 0644 ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \
- ${STAGING_LIBDIR}/nslu2-binaries/Trailer \
- ${STAGING_LIBDIR}/nslu2-binaries/SysConf \
- ${DEPLOY_DIR_IMAGE}/slug/
- install -m 0644 ${DEPLOY_DIR_IMAGE}/zImage-${IMAGE_BASENAME} ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
- install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${DEPLOY_DIR_IMAGE}/slug/flashdisk.jffs2
- cd ${DEPLOY_DIR_IMAGE}/slug
- slugimage -p -b RedBoot -s SysConf -r Ramdisk:1,Flashdisk:flashdisk.jffs2 -t Trailer \
- -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.flashdisk.img
- rm -rf ${DEPLOY_DIR_IMAGE}/slug
-}
-
-EXTRA_IMAGEDEPENDS += 'slugimage-native nslu2-linksys-firmware'
-IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "
============================================================
--- packages/linux/unslung-kernel_2.4.22.l2.3r63.bb b96398b403be656e05d9b24a0decccd597e277a6
+++ packages/linux/unslung-kernel_2.4.22.l2.3r63.bb 9c573119e7392c00e18cf949f04113d2eb096c9b
@@ -1,7 +1,7 @@ LICENSE = "GPL"
SECTION = "kernel"
DESCRIPTION = "Vendor-compatible Linux kernel for the Linksys NSLU2 device"
LICENSE = "GPL"
-PR = "r17"
+PR = "r18"
COMPATIBLE_HOST = 'arm.*-linux'
COMPATIBLE_MACHINE = "nslu2"
@@ -39,7 +39,7 @@ KERNEL_IMAGETYPE = "zImage"
ARCH = "arm"
KERNEL_IMAGETYPE = "zImage"
-KERNEL_SUFFIX = "unslung"
+KERNEL_SUFFIX = "${MACHINE}"
CMDLINE_CONSOLE ?= "ttyS0,115200"
CMDLINE_ROOT = "root=/dev/mtdblock4 rootfstype=jffs2 rw init=/linuxrc mem=32M at 0x00000000"
CMDLINE = "${CMDLINE_CONSOLE} ${CMDLINE_ROOT}"
More information about the Openembedded-commits
mailing list