[vuplus-blindscan-utils] update arm/mipsel dvb-t2 blindscan utils. (Enable 5V)
[vuplus_openvuplus_3.0] / meta-bsp / recipes-kernel / linux / linux-vuplus-3.13.5.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.13.5"
8
9 INC_PR = "r7"
10 SRCREV = ""
11
12 MODULE = "linux-3.13.5"
13
14 KERNEL_CONFIG = "${@base_contains("VUPLUS_FEATURES", "dvbproxy", "${MACHINE}_defconfig_proxy", "${MACHINE}_defconfig", d)}"
15
16 SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-${KV}.tar.bz2 \
17         file://rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch \
18         file://linux-tcp_output.patch \
19         file://${KERNEL_CONFIG} \
20         "
21
22 SRC_URI += "${@base_contains("VUPLUS_FEATURES", "dvbproxy", "file://linux_dvb_adapter.patch;patch=1;pnum=1", "", d)}"
23
24 inherit kernel
25
26 S = "${WORKDIR}/linux"
27
28 RREPLACES_${PN} = "linux-vuplus"
29 RCONFLICTS_${PN} = "linux-vuplus"
30
31 export OS = "Linux"
32 KERNEL_IMAGETYPE = "vmlinux"
33 KERNEL_OUTPUT = "vmlinux"
34 KERNEL_OBJECT_SUFFIX = "ko"
35 KERNEL_IMAGEDEST = "tmp"
36
37 FILES_kernel-image = "/${KERNEL_IMAGEDEST}/vmlinux.gz /${KERNEL_IMAGEDEST}/autoexec.bat"
38
39 do_configure_prepend() {
40         oe_machinstall -m 0644 ${WORKDIR}/${KERNEL_CONFIG} ${WORKDIR}/defconfig
41 }
42
43 kernel_do_install_append() {
44         mv ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
45         gzip -9c ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} > ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz
46         rm ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
47 }
48
49 pkg_postinst_kernel-image () {
50         if [ -d /proc/stb ] ; then
51                 flash_erase /dev/mtd2 0 0
52                 nandwrite -p /dev/mtd2 /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz
53         fi
54         rm -f /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz
55         true
56 }
57
58 FILESEXTRAPATHS_prepend := "${THISDIR}/linux-vuplus-${KV}:"
59
60 SRC_URI[md5sum] = "19e9956653437b99b4fa6ec3e16a3e99"
61 SRC_URI[sha256sum] = "ef7fb307582ff243aacff8a13025fe028634aaf650ada309991ae03622962f61"
62
63