Merge pull request #2513 from codesnake/wp2_driver_addons

WeTek Play 2: Add support for crazycat and hauppauge driver addons
This commit is contained in:
Radostan Riedel 2018-02-23 17:42:23 +01:00 committed by GitHub
commit c8866056ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 78 additions and 25 deletions

View File

@ -592,3 +592,8 @@ CONFIG_MISC_DEVICES=y
#
CONFIG_ALTERA_STAPL=m
# CONFIG_STAGING is not set
#
# WeTek Play driver
#
CONFIG_WETEK=m

View File

@ -1,12 +1,14 @@
--- a/backports/backports.txt
+++ b/backports/backports.txt
@@ -21,6 +21,9 @@
diff -Naur a/backports/backports.txt b/backports/backports.txt
--- a/backports/backports.txt 2017-12-30 22:14:58.000000000 +0200
+++ b/backports/backports.txt 2018-02-23 13:50:01.327967293 +0200
@@ -21,6 +21,10 @@
# All supported versions need those patches
[9.255.255]
+add linux-301-AML-videobuf-resource.patch
+add linux-302-AML-amlogic-video-dev.patch
+add linux-303-AML-meson-ir.patch
+add linux-304-AML-wetekplay.patch
add api_version.patch
add pr_fmt.patch
add debug.patch

View File

@ -1,6 +1,7 @@
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -112,6 +112,13 @@
diff -Naur a/linux/Makefile b/linux/Makefile
--- a/linux/Makefile 2017-12-30 22:01:38.000000000 +0200
+++ b/linux/Makefile 2018-02-23 13:25:54.025763853 +0200
@@ -112,6 +112,17 @@
untar: linux-media.tar.bz2
tar xfj linux-media.tar.bz2
@ -11,6 +12,10 @@
+ # Copy videobuf-res module
+ cp -a "$(SRCDIR)/drivers/media/v4l2-core/videobuf-res.c" "drivers/media/v4l2-core/"
+ cp -a "$(SRCDIR)/include/media/videobuf-res.h" "include/media/"
+
+ # Copy WeTek Play DVB driver
+ cp -a "$(SRCDIR)/drivers/amlogic/wetek" "drivers/media/amlogic"
+
-rm -f .patches_applied .linked_dir .git_log.md5
clean:

View File

@ -0,0 +1,21 @@
diff --git a/drivers/media/amlogic/Kconfig b/drivers/media/amlogic/Kconfig
index 5203702..7af18b7 100644
--- a/drivers/media/amlogic/Kconfig
+++ b/drivers/media/amlogic/Kconfig
@@ -5,4 +5,6 @@ menu "Amlogic Device Drivers"
source "drivers/media/amlogic/video_dev/Kconfig"
+source "drivers/media/amlogic/wetek/Kconfig"
+
endmenu
diff --git a/drivers/media/amlogic/Makefile b/drivers/media/amlogic/Makefile
index 049cb81..99bbb31 100644
--- a/drivers/media/amlogic/Makefile
+++ b/drivers/media/amlogic/Makefile
@@ -3,3 +3,5 @@
##########################################
obj-$(CONFIG_V4L_AMLOGIC_VIDEO) += video_dev/
+
+obj-$(CONFIG_WETEK) += wetek/

View File

@ -49,5 +49,10 @@ unpack() {
# Copy videobuf-res module
cp -a "$(kernel_path)/drivers/media/v4l2-core/videobuf-res.c" "$PKG_BUILD/drivers/media/v4l2-core/"
cp -a "$(kernel_path)/include/media/videobuf-res.h" "$PKG_BUILD/include/media/"
# Copy WeTek Play DVB driver
if [ $LINUX = "amlogic-3.14" ]; then
cp -a "$(kernel_path)/drivers/amlogic/wetek" "$PKG_BUILD/drivers/media/amlogic"
fi
fi
}

View File

@ -1,12 +1,14 @@
--- a/backports/backports.txt
+++ b/backports/backports.txt
@@ -21,6 +21,9 @@
diff -Naur a/backports/backports.txt b/backports/backports.txt
--- a/backports/backports.txt 2017-12-30 22:14:58.000000000 +0200
+++ b/backports/backports.txt 2018-02-23 13:50:01.327967293 +0200
@@ -21,6 +21,10 @@
# All supported versions need those patches
[9.255.255]
+add linux-301-AML-videobuf-resource.patch
+add linux-302-AML-amlogic-video-dev.patch
+add linux-303-AML-meson-ir.patch
+add linux-304-AML-wetekplay.patch
add api_version.patch
add pr_fmt.patch
add debug.patch

View File

@ -0,0 +1,21 @@
diff --git a/drivers/media/amlogic/Kconfig b/drivers/media/amlogic/Kconfig
index 5203702..7af18b7 100644
--- a/drivers/media/amlogic/Kconfig
+++ b/drivers/media/amlogic/Kconfig
@@ -5,4 +5,6 @@ menu "Amlogic Device Drivers"
source "drivers/media/amlogic/video_dev/Kconfig"
+source "drivers/media/amlogic/wetek/Kconfig"
+
endmenu
diff --git a/drivers/media/amlogic/Makefile b/drivers/media/amlogic/Makefile
index 049cb81..99bbb31 100644
--- a/drivers/media/amlogic/Makefile
+++ b/drivers/media/amlogic/Makefile
@@ -3,3 +3,5 @@
##########################################
obj-$(CONFIG_V4L_AMLOGIC_VIDEO) += video_dev/
+
+obj-$(CONFIG_WETEK) += wetek/

View File

@ -17,8 +17,8 @@
################################################################################
PKG_NAME="wetekdvb"
PKG_VERSION="20171219"
PKG_SHA256="973ae6c3997a24904d36aa2b2fc9ff92f2ff13339d0e52210f78a6307932c917"
PKG_VERSION="20180222"
PKG_SHA256="9deb42ede05082279da971edf1ec0133c0f5da6edcae9d69c04f022fc91c7d6c"
PKG_ARCH="arm aarch64"
PKG_LICENSE="nonfree"
PKG_SITE="http://www.wetek.com/"
@ -32,12 +32,12 @@ PKG_IS_KERNEL_PKG="yes"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME
if [ "$DEVICE" = "WeTek_Play_2" ]; then
cp driver/wetekdvb_play2.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME/wetekdvb.ko
else
cp driver/wetekdvb.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME
fi
device=${DEVICE:-$PROJECT}
for overlay_dir in driver/$device/*/; do
overlay_dir=`basename $overlay_dir`
mkdir -p $INSTALL/$(get_full_module_dir $overlay_dir)/$PKG_NAME
cp driver/$device/$overlay_dir/wetekdvb.ko $INSTALL/$(get_full_module_dir $overlay_dir)/$PKG_NAME
done
mkdir -p $INSTALL/$(get_full_firmware_dir)
cp firmware/* $INSTALL/$(get_full_firmware_dir)

View File

@ -11,11 +11,3 @@
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
FIRMWARE="$FIRMWARE brcmfmac_sdio-firmware-aml"
# build and install driver addons (yes / no)
DRIVER_ADDONS_SUPPORT="no"
# driver addons to install:
# for a list of additinoal drivers see packages/linux-driver-addons
# Space separated list is supported,
DRIVER_ADDONS=""