[dvbmediasink] Remove WMV patch.
[vuplus_openvuplus_3.0] / meta-bsp / common / recipes / linux / linux-vuplus_2.6.37.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 = "r3"
9 SRCREV = ""
10
11 MODULE = "linux-2.6.37"
12
13 SRC_URI += " http://archive.vuplus.com/download/kernel/stblinux-2.6.37-3.1.tar.bz2 \
14         file://dvb-core.patch \
15         file://fix_cpu_proc.patch \
16         file://brcm_disable_enet1.patch \
17         file://bcmgenet_oobctrl.patch \
18         file://brcm_mtd_mac.patch \
19         file://${MACHINE}_defconfig \
20         "
21
22 S = "${WORKDIR}/stblinux-2.6.37"
23
24 inherit kernel
25
26 FILES_kernel-vmlinux = "/boot/vmlinux-*"
27 FILES_kernel-image = "/boot/vmlinux.gz"
28
29 export OS = "Linux"
30 KERNEL_IMAGETYPE = "vmlinux"
31 KERNEL_OUTPUT = "vmlinux"
32 KERNEL_OBJECT_SUFFIX = "ko"
33
34
35 do_configure_prepend() {
36         oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${S}/.config
37         oe_runmake oldconfig
38 }
39
40 kernel_do_install_append() {
41         install -d ${D}/${KERNEL_IMAGEDEST}
42         install -m 0755 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}
43         gzip ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
44 }
45
46 pkg_postinst_kernel-image () {
47         if [ -d /proc/stb ] ; then
48                 flash_erase /dev/mtd2 0 0
49                 nandwrite -p /dev/mtd2 /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz
50         fi
51         rm -f /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz
52         true
53 }
54
55 SRC_URI[md5sum] = "dd7df66b5a28bd30c11fcd473a0169cf"
56 SRC_URI[sha256sum] = "bb1bc54ebafae37b384480f590ef201457b7ef24b064ee3477de80e257e05ff8"
57