aboutsummaryrefslogtreecommitdiffstats
path: root/busybox
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-03 19:51:24 +0000
committerChris Larson <clarson@kergoth.com>2004-12-03 19:51:24 +0000
commit492457a85abbd41d7a37efe76108ecde3c72d307 (patch)
treeb85c05b3b6f1a3ac53f8706e6fd87973cf128cf2 /busybox
parenta14105a30a4a6538ddc613ff890d442ec78aa4b6 (diff)
downloadopenembedded-492457a85abbd41d7a37efe76108ecde3c72d307.tar.gz
Don't build switchbox and slingbox unless you're targeting an NSLU2.
BKrev: 41b0c3bcHWKv3tvxOM48uMvcxtkj-w
Diffstat (limited to 'busybox')
-rw-r--r--busybox/slingbox_1.00.oe45
-rw-r--r--busybox/switchbox_1.00.oe6
2 files changed, 51 insertions, 0 deletions
diff --git a/busybox/slingbox_1.00.oe b/busybox/slingbox_1.00.oe
index e69de29bb2..20f85813c1 100644
--- a/busybox/slingbox_1.00.oe
+++ b/busybox/slingbox_1.00.oe
@@ -0,0 +1,45 @@
+DESCRIPTION = "SlingBox version ${PV}. \
+SlingBox is a minimal version of BusyBox with just enough functionality \
+to enable ipkg to run on an Unslung NSLU2 device."
+HOMEPAGE = "http://www.busybox.net"
+LICENSE = "GPL"
+SECTION = "base"
+PRIORITY = "required"
+PR = "r1"
+
+SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
+ file://defconfig \
+ file://slingbox.patch;patch=1"
+
+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")
+}
+
+export EXTRA_CFLAGS = "${CFLAGS}"
+EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
+
+PACKAGES = "${PN}"
+FILES_${PN} = "/bin /sbin"
+FILES_${PN}-doc = ""
+FILES_${PN}-dev = ""
+FILES_${PN}-locale = ""
+
+inherit cml1
+
+do_configure () {
+ install -m 0644 ${WORKDIR}/defconfig ${S}/.config
+ cml1_do_configure
+}
+
+do_compile () {
+ unset CFLAGS
+ base_do_compile
+}
+
+do_install () {
+ oe_runmake 'PREFIX=${D}' install
+}
diff --git a/busybox/switchbox_1.00.oe b/busybox/switchbox_1.00.oe
index 42b82d8a9d..e2d9385d44 100644
--- a/busybox/switchbox_1.00.oe
+++ b/busybox/switchbox_1.00.oe
@@ -14,6 +14,12 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
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")
+}
+
LDFLAGS =+ "-static"
export EXTRA_CFLAGS = "${CFLAGS}"