1 DESCRIPTION = "SlingBox version ${PV}. \
2 SlingBox is a minimal version of BusyBox with just enough functionality \
3 to enable ipkg to run on an Unslung NSLU2 device."
4 HOMEPAGE = "http://www.busybox.net"
10 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
12 file://slingbox.patch;patch=1"
14 S = "${WORKDIR}/busybox-${PV}"
17 # Don't build slingbox unless we're targeting an nslu2
18 if oe.data.getVar("MACHINE", d, 1) != "nslu2":
19 raise oe.parse.SkipPackage("switchbox only builds for the Linksys NSLU2")
22 export EXTRA_CFLAGS = "${CFLAGS}"
23 EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
26 FILES_${PN} = "/bin /sbin"
29 FILES_${PN}-locale = ""
34 install -m 0644 ${WORKDIR}/defconfig ${S}/.config
44 oe_runmake 'PREFIX=${D}' install