Rename updates after the recent nslu2 merge.
authorChris Larson <clarson@kergoth.com>
Thu, 9 Dec 2004 01:41:27 +0000 (01:41 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 9 Dec 2004 01:41:27 +0000 (01:41 +0000)
BKrev: 41b7ad47lCNmwOlCvE1A_nD66bIcBw

12 files changed:
busybox/slingbox_1.00.bb
busybox/switchbox_1.00.bb
linux/nslu2-linksys-kernel_2.4.22.bb
linux/openslug-kernel_2.6.9.bb
linux/unslung-standard-kernel_2.3r25.bb
meta/openslug-image.bb
meta/unslung-standard-image.bb
nslu2-binary-only/nslu2-linksys-firmware_2.3r25.bb
nslu2-binary-only/nslu2-linksys-libs_2.3r25.bb
nslu2-binary-only/nslu2-linksys-ramdisk_2.3r25.bb
nslu2-binary-only/nslu2-switchbox-firmware.bb
nslu2-binary-only/unslung-standard-rootfs_2.3r25.bb

index d9849b5..155052e 100644 (file)
@@ -15,8 +15,8 @@ S = "${WORKDIR}/busybox-${PV}"
 
 python () {
        # Don't build slingbox unless we're targeting an nslu2
-       if oe.data.getVar("MACHINE", d, 1) != "nslu2":
-               raise oe.parse.SkipPackage("switchbox only builds for the Linksys NSLU2")
+       if bb.data.getVar("MACHINE", d, 1) != "nslu2":
+               raise bb.parse.SkipPackage("switchbox only builds for the Linksys NSLU2")
 }
 
 export EXTRA_CFLAGS = "${CFLAGS}"
index b9e4fb0..59b422a 100644 (file)
@@ -17,8 +17,8 @@ S = "${WORKDIR}/busybox-${PV}"
 
 python () {
        # Don't build switchbox unless we're targeting an nslu2
-       if oe.data.getVar("MACHINE", d, 1) != "nslu2":
-               raise oe.parse.SkipPackage("switchbox only builds for the Linksys NSLU2")
+       if bb.data.getVar("MACHINE", d, 1) != "nslu2":
+               raise bb.parse.SkipPackage("switchbox only builds for the Linksys NSLU2")
 }
 
 LDFLAGS =+ "-static"
index f7c41a4..0421d69 100644 (file)
@@ -18,8 +18,8 @@ S = "${WORKDIR}/linux-2.4.22"
 
 python () {
        # Don't build unless we're targeting an nslu2
-       if oe.data.getVar("MACHINE", d, 1) != "nslu2":
-               raise oe.parse.SkipPackage("NSLU2 kernel only builds for the Linksys NSLU2")
+       if bb.data.getVar("MACHINE", d, 1) != "nslu2":
+               raise bb.parse.SkipPackage("NSLU2 kernel only builds for the Linksys NSLU2")
 }
 
 COMPATIBLE_HOST = 'arm.*-linux'
index 3e94b29..0e48638 100644 (file)
@@ -51,8 +51,8 @@ addtask deploy before do_build after do_compile
 
 python () {
        # Don't build openslug kernel unless we're targeting an nslu2
-       mach = oe.data.getVar("MACHINE", d, 1)
-       dist = oe.data.getVar("DISTRO", d, 1)
+       mach = bb.data.getVar("MACHINE", d, 1)
+       dist = bb.data.getVar("DISTRO", d, 1)
        if mach != 'nslu2' or dist != 'openslug':
-               raise oe.parse.SkipPackage("OpenSlug only builds for the Linksys NSLU2")
+               raise bb.parse.SkipPackage("OpenSlug only builds for the Linksys NSLU2")
 }
index 53a23d5..678582f 100644 (file)
@@ -22,8 +22,8 @@ FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/unslung-kernel-${PV}/${UNS
 
 python () {
        # Don't build unslung kernel unless we're targeting an nslu2
-       mach = oe.data.getVar("MACHINE", d, 1)
-       dist = oe.data.getVar("DISTRO", d, 1)
+       mach = bb.data.getVar("MACHINE", d, 1)
+       dist = bb.data.getVar("DISTRO", d, 1)
        if mach != 'nslu2' or dist != 'unslung':
-               raise oe.parse.SkipPackage("Unslung only builds for the Linksys NSLU2")
+               raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2")
 }
index 94f9196..9f672ff 100644 (file)
@@ -26,8 +26,8 @@ inherit image_ipk
 
 python () {
        # Don't build openslug images unless we're targeting an nslu2
-       mach = oe.data.getVar("MACHINE", d, 1)
-       dist = oe.data.getVar("DISTRO", d, 1)
+       mach = bb.data.getVar("MACHINE", d, 1)
+       dist = bb.data.getVar("DISTRO", d, 1)
        if mach != 'nslu2' or dist != 'openslug':
-               raise oe.parse.SkipPackage("OpenSlug only builds for the Linksys NSLU2")
+               raise bb.parse.SkipPackage("OpenSlug only builds for the Linksys NSLU2")
 }
index 9104c7e..8edaa69 100644 (file)
@@ -33,8 +33,8 @@ unslung_clean_image () {
 
 python () {
        # Don't build unslung images unless we're targeting an nslu2
-       mach = oe.data.getVar("MACHINE", d, 1)
-       dist = oe.data.getVar("DISTRO", d, 1)
+       mach = bb.data.getVar("MACHINE", d, 1)
+       dist = bb.data.getVar("DISTRO", d, 1)
        if mach != 'nslu2' or dist != 'unslung':
-               raise oe.parse.SkipPackage("Unslung only builds for the Linksys NSLU2")
+               raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2")
 }
index 9630ecf..12b7b82 100644 (file)
@@ -9,8 +9,8 @@ S = "${WORKDIR}"
 
 python () {
        # Don't build unless we're targeting an nslu2
-       if oe.data.getVar("MACHINE", d, 1) != "nslu2":
-               raise oe.parse.SkipPackage("NSLU2 firmware only builds for the Linksys NSLU2")
+       if bb.data.getVar("MACHINE", d, 1) != "nslu2":
+               raise bb.parse.SkipPackage("NSLU2 firmware only builds for the Linksys NSLU2")
 }
 
 do_compile () {
index 7b6b963..90f768d 100644 (file)
@@ -17,6 +17,6 @@ FILES_${PN} = "/lib"
 
 python () {
        # Don't build unless we're targeting an nslu2
-       if oe.data.getVar("MACHINE", d, 1) != "nslu2":
-               raise oe.parse.SkipPackage("NSLU2 stock firmware libraries only builds for the Linksys NSLU2")
+       if bb.data.getVar("MACHINE", d, 1) != "nslu2":
+               raise bb.parse.SkipPackage("NSLU2 stock firmware libraries only builds for the Linksys NSLU2")
 }
index d774891..f20a277 100644 (file)
@@ -15,6 +15,6 @@ FILES_${PN} = "/"
 
 python () {
        # Don't build unless we're targeting an nslu2
-       if oe.data.getVar("MACHINE", d, 1) != "nslu2":
-               raise oe.parse.SkipPackage("NSLU2 ramdisk only builds for the Linksys NSLU2")
+       if bb.data.getVar("MACHINE", d, 1) != "nslu2":
+               raise bb.parse.SkipPackage("NSLU2 ramdisk only builds for the Linksys NSLU2")
 }
index 0f86d88..fb06aa5 100644 (file)
@@ -9,9 +9,9 @@ S = "${WORKDIR}"
 
 python () {
        # Don't build switchbox firmware unless we're targeting an nslu2
-       mach = oe.data.getVar("MACHINE", d, 1)
+       mach = bb.data.getVar("MACHINE", d, 1)
        if mach != 'nslu2':
-               raise oe.parse.SkipPackage("Switchbox is only relevant for the Linksys NSLU2")
+               raise bb.parse.SkipPackage("Switchbox is only relevant for the Linksys NSLU2")
 }
 
 do_compile () {
index e69de29..f3be5fb 100644 (file)
@@ -0,0 +1,76 @@
+SECTION = "base"
+
+PR = "r28"
+
+UNSLUNG_VERSION = "3.8-alpha"
+UNSLUNG_VARIANT ?= "standard"
+
+DEPENDS = "nslu2-linksys-libs"
+
+FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/unslung-rootfs-${PV}/${UNSLUNG_VARIANT}', '${FILE_DIRNAME}/unslung-rootfs-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
+
+SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r25.tar.bz2 \
+          file://README \
+          file://linuxrc \
+          file://unsling \
+          file://resling \
+          file://rc.unslung \
+          file://rc-diversion.patch;patch=1 \
+          file://rc.1-diversion.patch;patch=1 \
+          file://rc.crond-diversion.patch;patch=1 \
+          file://rc.halt-diversion.patch;patch=1 \
+          file://rc.local-diversion.patch;patch=1 \
+          file://rc.modules-diversion.patch;patch=1 \
+          file://rc.network-diversion.patch;patch=1 \
+          file://rc.quickset-diversion.patch;patch=1 \
+          file://rc.quota-diversion.patch;patch=1 \
+          file://rc.reboot-diversion.patch;patch=1 \
+          file://rc.reset_usrgrpshare-diversion.patch;patch=1 \
+          file://rc.rstimezone-diversion.patch;patch=1 \
+          file://rc.samba-diversion.patch;patch=1 \
+          file://rc.sysinit-diversion.patch;patch=1 \
+          file://rc.thttpd-diversion.patch;patch=1 \
+          file://rc.xinetd-diversion.patch;patch=1 \
+          file://root-passwd.patch;patch=1 \
+          file://create-ramdisks.patch;patch=1 \
+          file://remount-noatime.patch;patch=1 \
+          file://initialise-mtab.patch;patch=1 \
+          "
+
+S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r25"
+
+python () {
+       # Don't build unslung images unless we're targeting an nslu2
+       mach = bb.data.getVar("MACHINE", d, 1)
+       dist = bb.data.getVar("DISTRO", d, 1)
+       if mach != 'nslu2' or dist != 'unslung':
+               raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2")
+}
+
+do_compile () {
+       echo "V2.3R25-uNSLUng-${UNSLUNG_VARIANT}-${UNSLUNG_VERSION}" > ${S}/.unslung
+
+       sed -i -e s/@version#/@version#-uNSLUng-${UNSLUNG_VARIANT}-${UNSLUNG_VERSION}/ ${S}/home/httpd/html/home.htm
+       sed -i -e 's|>&nbsp;<|><a href="Unslung" class="mainmenu" target="_top">Unslung Doco</a><|' \
+               ${S}/home/httpd/html/manhead.htm
+
+       install -m 755 ${WORKDIR}/linuxrc ${S}/linuxrc
+       install -m 755 ${WORKDIR}/unsling ${S}/sbin/unsling
+       install -m 755 ${WORKDIR}/resling ${S}/sbin/resling
+       install -m 755 ${WORKDIR}/rc.unslung ${S}/etc/rc.d/rc.unslung
+
+       install -d ${S}/opt/doc
+       install -m 755 ${WORKDIR}/README ${S}/opt/doc/README
+       ln -s /opt/doc ${S}/home/httpd/html/Unslung
+
+       # Remove the libraries, because they are in nslu2-linksys-libs now
+       rm -rf ${S}/lib
+}
+
+do_install () {
+       ( cd ${S} ; tar -c -v -f - --exclude '*\~*' --exclude '.patches' . ) | ( cd ${D} ; tar xvf - )
+}
+
+PACKAGES = "${PN}"
+FILES_${PN} = "/"
+RDEPENDS_${PN} = "nslu2-linksys-libs"