Merge remote-tracking branch 'oe_21/master' into vuplus-3.0
[vuplus_openvuplus_3.0] / meta-bsp / common / recipes / vuplus / vuplus-tuner-turbo.inc
1 DESCRIPTION = "Hardware drivers and blindscan util for Vuplus Tuner Turbo"
2 SECTION = "base"
3 LICENSE = "CLOSED"
4
5 SRCDATE = "20150303"
6 FW_SRCDATE = "20150303"
7 KV = "${VUPLUS_KERNEL_VERSION}"
8 PV = "${KV}"
9 PR = "${SRCDATE}"
10
11 SRC_URI = " \
12         http://archive.vuplus.com/download/usb/tuner/turbo/vuplus_tuner_turbo_driver_${PV}_${SRCDATE}.tar.gz;name=driver \
13         http://archive.vuplus.com/download/usb/tuner/turbo/vuplus_tuner_turbo_bin_fw_${FW_SRCDATE}.tar.gz;name=binfw \
14 "
15
16 DEPENDS += "virtual/kernel module-init-tools"
17 RDEPENDS_${PN} += "module-init-tools-depmod"
18
19 S = "${WORKDIR}"
20
21 inherit module-base
22
23 do_install() {
24         install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus
25         install -m 0644 ${S}/vuplus_tuner_turbo_driver.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus/vuplus_tuner_turbo_driver.ko
26         install -d ${D}/lib/firmware/
27         install -m 0644 ${S}/Vuplus_Turbo_USB_0101.fw ${D}/lib/firmware/Vuplus_Turbo_USB_0101.fw
28         install -d "${D}/${bindir}"
29         install -m 0755 "${S}/vuplus_turbo_c" "${D}/${bindir}"
30         install -m 0755 "${S}/vuplus_turbo_t" "${D}/${bindir}"
31 }
32
33 pkg_postinst_${PN} () {
34         if [ -d /proc/stb ]; then
35                 depmod -a
36         fi
37         true
38 }
39
40 PACKAGE_ARCH := "${MACHINE_ARCH}"
41 FILES_${PN} = "/"
42
43 SRC_URI[binfw.md5sum] = "517a9d54e41fae16612bcfe431ef7a3e"
44 SRC_URI[binfw.sha256sum] = "b39f0b38684c44a13dd62ac4286a4a73bcf74fd25a881ecfe97d292535163ca0"
45