summaryrefslogtreecommitdiff
path: root/meta-bsp/recipes-vuplus/vuplus-tuner-turbo2/vuplus-tuner-turbo2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-bsp/recipes-vuplus/vuplus-tuner-turbo2/vuplus-tuner-turbo2.inc')
-rw-r--r--meta-bsp/recipes-vuplus/vuplus-tuner-turbo2/vuplus-tuner-turbo2.inc45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-bsp/recipes-vuplus/vuplus-tuner-turbo2/vuplus-tuner-turbo2.inc b/meta-bsp/recipes-vuplus/vuplus-tuner-turbo2/vuplus-tuner-turbo2.inc
new file mode 100644
index 0000000..f3a99cf
--- /dev/null
+++ b/meta-bsp/recipes-vuplus/vuplus-tuner-turbo2/vuplus-tuner-turbo2.inc
@@ -0,0 +1,45 @@
+DESCRIPTION = "Hardware drivers and blindscan util for Vuplus Tuner Turbo2"
+SECTION = "base"
+LICENSE = "CLOSED"
+require conf/license/license-close.inc
+
+SRCDATE = "20201207"
+FW_SRCDATE = "20201207"
+KV = "${VUPLUS_KERNEL_VERSION}"
+PV = "${KV}"
+PR = "${SRCDATE}"
+
+SRC_URI = " \
+ http://archive.vuplus.com/download/usb/tuner/turbo/vuplus_tuner_turbo2_driver_${PV}_${TARGET_ARCH}_${SRCDATE}.tar.gz;name=driver \
+ http://archive.vuplus.com/download/usb/tuner/turbo/vuplus_tuner_turbo2_bin_fw_${TARGET_ARCH}_${FW_SRCDATE}.tar.gz;name=binfw \
+"
+
+S = "${WORKDIR}"
+
+#inherit module-base
+DEPENDS = "virtual/kernel"
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}"
+
+do_install() {
+ install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus
+ install -m 0644 ${S}/vuplus_tuner_turbo2_driver.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/media/usb/vuplus/vuplus_tuner_turbo2_driver.ko
+ install -d ${D}/lib/firmware/
+ install -m 0644 ${S}/Vuplus_Turbo2_USB_0100.fw ${D}/lib/firmware/Vuplus_Turbo2_USB_0100.fw
+ install -d "${D}/${bindir}"
+ install -m 0755 "${S}/vuplus_turbo2_c" "${D}/${bindir}"
+ install -m 0755 "${S}/vuplus_turbo2_t" "${D}/${bindir}"
+}
+
+pkg_postinst_${PN} () {
+ if [ -d /proc/stb ]; then
+ depmod -a
+ fi
+ true
+}
+
+PACKAGE_ARCH := "${MACHINE_ARCH}"
+FILES_${PN} = "/"
+
+SRC_URI[binfw.md5sum] = "aa1be089011f3bdc15d88d7f70dd4c7e"
+SRC_URI[binfw.sha256sum] = "9a130ee3a67994029eec37366a4cce67031d6d5e8bfda0ed8b6ce59983bbb376"
+