dcc68524f7ac43259879bc8793ffc5428060182b
[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 S = "${WORKDIR}"
17
18 inherit module-base
19
20 do_install() {
21         install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus
22         install -m 0644 ${S}/vuplus_tuner_turbo_driver.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus/vuplus_tuner_turbo_driver.ko
23         install -d ${D}/lib/firmware/
24         install -m 0644 ${S}/Vuplus_Turbo_USB_0101.fw ${D}/lib/firmware/Vuplus_Turbo_USB_0101.fw
25         install -d "${D}/${bindir}"
26         install -m 0755 "${S}/vuplus_turbo_c" "${D}/${bindir}"
27         install -m 0755 "${S}/vuplus_turbo_t" "${D}/${bindir}"
28 }
29
30 pkg_postinst_${PN} () {
31         if [ -d /proc/stb ]; then
32                 depmod -a
33         fi
34         true
35 }
36
37 PACKAGE_ARCH := "${MACHINE_ARCH}"
38 FILES_${PN} = "/"
39
40 SRC_URI[binfw.md5sum] = "517a9d54e41fae16612bcfe431ef7a3e"
41 SRC_URI[binfw.sha256sum] = "b39f0b38684c44a13dd62ac4286a4a73bcf74fd25a881ecfe97d292535163ca0"
42