1 DESCRIPTION = "SlingBox is a minimal version of BusyBox with just enough functionality \
2 to enable ipkg to run on an Unslung NSLU2 device."
3 HOMEPAGE = "http://www.busybox.net"
8 COMPATIBLE_MACHINE = "nslu2"
10 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
13 file://shadow_h_is_required.patch;patch=1 \
14 file://df_rootfs.patch;patch=1 \
15 file://lazy_umount.patch;patch=1 \
16 file://halt.patch;patch=1 \
17 file://fdisk-readhex.patch;patch=1 \
18 file://trylink-bash.patch;patch=1 \
19 file://slingbox_name.patch;patch=1 \
20 file://slingbox.patch;patch=1"
22 S = "${WORKDIR}/busybox-${PV}"
24 export EXTRA_CFLAGS = "${CFLAGS}"
25 EXTRA_OEMAKE_append = " V=1 ARCH=arm CROSS_COMPILE=${TARGET_PREFIX}"
30 FILES_${PN}-locale = ""
35 install -m 0644 ${WORKDIR}/defconfig ${S}/.config
40 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
45 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
46 oe_runmake "PREFIX=${D}" install
48 # Just in case fdisk is compiled in, do not overwrite the Linksys one
49 rm -f ${S}/_install/sbin/fdisk
51 cp -pPR ${S}/_install/* ${D}/