[vuplus-blindscan-utils] update arm/mipsel dvb-t2 blindscan utils. (Enable 5V)
[vuplus_openvuplus_3.0] / meta-bsp / recipes-kernel / linux / linux-vuplus-3.14.28.inc
1 DESCRIPTION = "Linux kernel for vuplus"
2 SECTION = "kernel"
3 LICENSE = "GPLv2"
4 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
5
6 PE = "1"
7 KV = "3.14.28"
8
9 INC_PR = "r4"
10 SRCREV = ""
11
12 MODULE = "linux-3.14.28"
13
14 KERNEL_CONFIG = "${MACHINE}_defconfig"
15
16 SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-3.14-1.8.tar.bz2 \
17         file://${KERNEL_CONFIG} \
18         file://bcm_genet_disable_warn.patch \
19         file://linux_dvb-core.patch \
20         file://linux_rpmb_not_alloc.patch \
21         file://rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch \
22         file://usb_core_hub_msleep.patch \
23         "
24
25 SRC_URI += "${@base_contains("VUPLUS_FEATURES", "dvbproxy", "file://linux_dvb_adapter.patch;patch=1;pnum=1", "", d)}"
26
27 inherit kernel
28
29 S = "${WORKDIR}/linux"
30
31 RREPLACES_${PN} = "linux-vuplus"
32 RCONFLICTS_${PN} = "linux-vuplus"
33
34 export OS = "Linux"
35 KERNEL_IMAGETYPE = "zImage"
36 KERNEL_OBJECT_SUFFIX = "ko"
37 KERNEL_IMAGEDEST = "tmp"
38 KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
39
40 FILES_kernel-image = "/${KERNEL_IMAGEDEST}/zImage"
41
42 do_configure_prepend() {
43         oe_machinstall -m 0644 ${WORKDIR}/${KERNEL_CONFIG} ${WORKDIR}/defconfig
44 }
45
46 kernel_do_install_append() {
47         install -d ${D}/${KERNEL_IMAGEDEST}
48         install -m 0755 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}
49 }
50
51 kernel_do_compile() {
52         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
53         oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
54         if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then
55                 gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}"
56         fi
57 }
58
59 pkg_postinst_kernel-image () {
60         if [ -d /proc/stb ] ; then
61                 dd if=/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} of=/dev/mmcblk0p1
62         fi
63         rm -f /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
64         true
65 }
66
67 pkg_postrm_kernel-image () {
68 }
69
70 FILESEXTRAPATHS_prepend := "${THISDIR}/linux-vuplus-${KV}:"
71
72 SRC_URI[md5sum] = "1a62540fdd7f23aa2c1ebf119ca71e91"
73 SRC_URI[sha256sum] = "a464515d14dda772047ddba7900858f535057294903341e2c1774009eaf95005"