ral@alwin.at.home
red@quarm.(none)
reenoo@sugarcube.dyndns.org
+rwhitby@home.(none)
schurig@mnz66.mn-logistik.de
schurig@schurig.homelinux.net
szczepan@home.hrw.one.pl
+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 ${STAGING_KERNEL_DIR}/zImage ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/slug/ramdisk.gz
+ cd ${DEPLOY_DIR_IMAGE}/slug
+ slugtool pack ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.img
+ rm -f ${DEPLOY_DIR_IMAGE}/zImage* ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz
+ rm -rf ${DEPLOY_DIR_IMAGE}/slug
+}
+
+EXTRA_IMAGEDEPENDS += 'slugtool-native nslu2-firmware-binary'
+IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "
+DEPENDS = "slugtool-native"
+PACKAGES = ""
+INHIBIT_DEFAULT_DEPS = "1"
+
+SRC_URI = "ftp://ftp.linksys.com/pub/network/nslu2-fw-2.3r25.zip"
+S = "${WORKDIR}"
+
+do_compile () {
+ slugtool unpack NSLU2_V23R25.bin
+ install -d ${STAGING_LIBDIR}/nslu2-binaries
+ install -m 0755 Redboot ${STAGING_LIBDIR}/nslu2-binaries/
+ install -m 0755 SysConf ${STAGING_LIBDIR}/nslu2-binaries/
+ install -m 0755 Trailer ${STAGING_LIBDIR}/nslu2-binaries/
+}
+include slugtool.oe
+inherit native
+
+FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/slugtool-${PV}', '${FILE_DIRNAME}/slugtool', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
+PACKAGES = ""
+
+do_stage () {
+ install -m 0755 slugtool ${STAGING_BINDIR}/
+}
+DESCRIPTION = "Slugtool is a small app to disassemble and reassemble \
+flash images for the Linksys NSLU2 device."
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+
+SRC_URI = "http://www.lantz.com/filemgmt_data/files/slugtool.tar.gz \
+ file://redboot_typo.patch;patch=1"
+S = "${WORKDIR}"
+
+do_compile () {
+ ${CC} ${CFLAGS} ${LDFLAGS} slugtool.c -o slugtool
+}
+
+do_install () {
+ install -d ${D}/${bindir}
+ install -m 0755 slugtool ${D}/${bindir}/
+}