1 DESCRIPTION = "Linux kernel for vuplus duo"
7 MODULE = "stblinux-2.6.18"
10 SRC_URI = "http://archive.vuplus.com/download/stblinux-${KV}.tar.bz2 \
11 file://linux_bm750_nand.patch;patch=1;pnum=0 \
12 file://linux_bm750_proc.patch;patch=1;pnum=0 \
13 file://linux_bm750_resource.patch;patch=1;pnum=0 \
14 file://linux_bm750_serial.patch;patch=1;pnum=0 \
15 file://linux_bm750_setup.patch;patch=1;pnum=0 \
16 file://linux_bm750_gcc_4.4.patch;patch=1;pnum=1 \
17 file://linux_bm750_arch_makefile.patch;patch=1;pnum=0 \
18 file://linux_bm750_kobject.patch;patch=1;pnum=0 \
19 file://linux_bm750_dvb-core_fe.patch;patch=1;pnum=0 \
20 file://bm750_defconfig \
24 S = "${WORKDIR}/stblinux-2.6.18"
28 FILES_kernel-image = "/boot/vmlinux.gz /boot/autoexec.bat"
31 KERNEL_IMAGETYPE = "vmlinux"
32 KERNEL_OUTPUT = "vmlinux"
33 KERNEL_OBJECT_SUFFIX = "ko"
36 do_configure_prepend() {
37 oe_machinstall -m 0644 ${WORKDIR}/bm750_defconfig ${S}/.config
38 if [ -d ${WORKDIR}/cdfs-${PV} ]; then
39 mv ${WORKDIR}/cdfs-${PV} ${S}/fs/cdfs
40 cd ${S} & patch -p0 < ${S}/fs/cdfs/patch.cdfs
45 do_install_append () {
47 install -m 0755 vmlinux ${D}/boot/vmlinux
48 gzip ${D}/boot/vmlinux
51 pkg_preinst_kernel-image () {
52 [ -d /proc/stb ] && mount -o rw,remount /boot
54 if [ -f /boot/vmlinux.gz ];
55 then rm -f /boot/vmlinux.gz;
59 pkg_postinst_kernel-image () {
61 then flash_eraseall /dev/mtd1; nandwrite /dev/mtd1 /boot/vmlinux.gz -p;
63 [ -d /proc/stb ] && mount -o ro,remount /boot
68 pkg_prerm_kernel-image () {
69 [ -d /proc/stb ] && mount -o rw,remount /boot
73 pkg_postrm_kernel-image () {
74 [ -d /proc/stb ] && mount -o ro,remount /boot