fix vuplus-bootlogo FILEEXTRAPATHS.
[vuplus_openvuplus_3.0] / meta-bsp / common / recipes / linux / linux-vuplus_3.3.6.bb
1 DESCRIPTION = "Linux kernel for vuplus"
2 SECTION = "kernel"
3 LICENSE = "GPL"
4 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
5
6 KV = "2.6.37"
7
8 PR = "r2"
9 SRCREV = ""
10
11 MODULE = "linux-2.6.37"
12
13 SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-3.3.6-1.2.tar.bz2 \
14         file://brcm_3.3.patch;patch=1;pnum=1 \
15         file://fix_cpu_proc.patch;patch=1;pnum=1 \
16         file://brcm_mtd_mac.patch;patch=1;pnum=1 \
17         file://dvb_core_5.5.patch;patch=1;pnum=1 \
18         file://${MACHINE}_defconfig \
19         "
20
21 S = "${WORKDIR}/linux"
22
23 inherit kernel
24
25 FILES_kernel-image = "/boot/vmlinux.gz /boot/autoexec.bat"
26
27 export OS = "Linux"
28 KERNEL_IMAGETYPE = "vmlinux"
29 KERNEL_OUTPUT = "vmlinux"
30 KERNEL_OBJECT_SUFFIX = "ko"
31
32
33 do_configure_prepend() {
34         oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${S}/.config
35         oe_runmake oldconfig
36 }
37
38 kernel_do_install_append() {
39         install -d ${D}/${KERNEL_IMAGEDEST}
40         install -m 0755 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}
41         gzip ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
42 }
43
44 pkg_postinst_kernel-image () {
45         if [ -d /proc/stb ] ; then
46                 flash_eraseall -j /dev/mtd2
47                 nandwrite -p /dev/mtd2 /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz
48         fi
49         rm -f /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz
50         true
51 }
52
53 SRC_URI[md5sum] = "64bc9b526a668d6cad1ea83646137026"
54 SRC_URI[sha256sum] = "da99dc00ad47696a7cf1f56fc90e42b51f3dbd2982a6f11a2ac5dc2d12f22b4f"
55