aboutsummaryrefslogtreecommitdiffstats
path: root/packages/busybox/slingbox_1.3.1.bb
blob: 0a9051d447f75facb078b030637114e3d50ca1e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
DESCRIPTION = "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 = "r4"
COMPATIBLE_MACHINE = "nslu2"

SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://defconfig \
           file://mountall \
           file://shadow_h_is_required.patch;patch=1 \
           file://df_rootfs.patch;patch=1 \
           file://lazy_umount.patch;patch=1 \
           file://halt.patch;patch=1 \
           file://fdisk-readhex.patch;patch=1 \
           file://trylink-bash.patch;patch=1 \
           file://slingbox_name.patch;patch=1 \
           file://slingbox.patch;patch=1"

S = "${WORKDIR}/busybox-${PV}"

export EXTRA_CFLAGS = "${CFLAGS}"
EXTRA_OEMAKE_append = " V=1 ARCH=arm CROSS_COMPILE=${TARGET_PREFIX}"

FILES_${PN} = "/"
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 CPPFLAGS CXXFLAGS LDFLAGS
	base_do_compile
}

do_install () {
	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
	oe_runmake "PREFIX=${D}" install

	# Just in case fdisk is compiled in, do not overwrite the Linksys one
	rm -f ${S}/_install/sbin/fdisk

	cp -pPR ${S}/_install/* ${D}/
}
+ printk(KERN_ERR "tosa-bl: Unable to register NSSP handler!\n"); goto err_ssp_init; } + pxa_gpio_mode(GPIO83_NSSP_TX); + pxa_gpio_mode(GPIO81_NSSP_CLK_OUT); + pxa_gpio_mode(GPIO82_NSSP_FRM_OUT); + /* Tell the i2c layer a new client has arrived */ err = i2c_attach_client(client); if (err) @@ -269,7 +276,6 @@ static int tosa_bl_detect_client(struct err_fb_register: backlight_device_unregister(data->bl_dev); err_bl_register: - tosa_set_backlight(data, 0); tosa_lcd_tg_off(data); err = i2c_detach_client(client); @@ -296,7 +302,6 @@ static int tosa_bl_detach_client(struct backlight_device_unregister(data->bl_dev); - tosa_set_backlight(data, 0); tosa_lcd_tg_off(data); /* Try to detach the client from i2c space */