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_arch_makefile.patch;patch=1;pnum=0 \
17 file://linux_bm750_kobject.patch;patch=1;pnum=0 \
18 file://linux_bm750_dvb-core_fe.patch;patch=1;pnum=0 \
19 file://bm750_defconfig \
23 S = "${WORKDIR}/stblinux-2.6.18"
27 FILES_kernel-image = "/boot/vmlinux.gz /boot/autoexec.bat"
30 KERNEL_IMAGETYPE = "vmlinux"
31 KERNEL_OUTPUT = "vmlinux"
32 KERNEL_OBJECT_SUFFIX = "ko"
35 do_configure_prepend() {
36 oe_machinstall -m 0644 ${WORKDIR}/bm750_defconfig ${S}/.config
37 if [ -d ${WORKDIR}/cdfs-${PV} ]; then
38 mv ${WORKDIR}/cdfs-${PV} ${S}/fs/cdfs
39 cd ${S} & patch -p0 < ${S}/fs/cdfs/patch.cdfs
44 do_install_append () {
46 install -m 0755 vmlinux ${D}/boot/vmlinux
47 gzip ${D}/boot/vmlinux
50 pkg_preinst_kernel-image () {
51 [ -d /proc/stb ] && mount -o rw,remount /boot
53 if [ -f /boot/vmlinux.gz ];
54 then rm -f /boot/vmlinux.gz;
58 pkg_postinst_kernel-image () {
60 then flash_eraseall /dev/mtd1; nandwrite /dev/mtd1 /boot/vmlinux.gz -p;
62 [ -d /proc/stb ] && mount -o ro,remount /boot
67 pkg_prerm_kernel-image () {
68 [ -d /proc/stb ] && mount -o rw,remount /boot
72 pkg_postrm_kernel-image () {
73 [ -d /proc/stb ] && mount -o ro,remount /boot