f3a99cfcd695a3d9b0b044cdca561790fc0cb8b4
[vuplus_openvuplus_3.0] / meta-bsp / recipes-vuplus / vuplus-tuner-turbo2 / vuplus-tuner-turbo2.inc
1 DESCRIPTION = "Hardware drivers and blindscan util for Vuplus Tuner Turbo2"
2 SECTION = "base"
3 LICENSE = "CLOSED"
4 require conf/license/license-close.inc
5
6 SRCDATE = "20201207"
7 FW_SRCDATE = "20201207"
8 KV = "${VUPLUS_KERNEL_VERSION}"
9 PV = "${KV}"
10 PR = "${SRCDATE}"
11
12 SRC_URI = " \
13         http://archive.vuplus.com/download/usb/tuner/turbo/vuplus_tuner_turbo2_driver_${PV}_${TARGET_ARCH}_${SRCDATE}.tar.gz;name=driver \
14         http://archive.vuplus.com/download/usb/tuner/turbo/vuplus_tuner_turbo2_bin_fw_${TARGET_ARCH}_${FW_SRCDATE}.tar.gz;name=binfw \
15 "
16
17 S = "${WORKDIR}"
18
19 #inherit module-base
20 DEPENDS = "virtual/kernel"
21 KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}"
22
23 do_install() {
24         install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus
25         install -m 0644 ${S}/vuplus_tuner_turbo2_driver.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus/vuplus_tuner_turbo2_driver.ko
26         install -d ${D}/lib/firmware/
27         install -m 0644 ${S}/Vuplus_Turbo2_USB_0100.fw ${D}/lib/firmware/Vuplus_Turbo2_USB_0100.fw
28         install -d "${D}/${bindir}"
29         install -m 0755 "${S}/vuplus_turbo2_c" "${D}/${bindir}"
30         install -m 0755 "${S}/vuplus_turbo2_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] = "aa1be089011f3bdc15d88d7f70dd4c7e"
44 SRC_URI[binfw.sha256sum] = "9a130ee3a67994029eec37366a4cce67031d6d5e8bfda0ed8b6ce59983bbb376"
45