summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-04-06 19:17:14 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-04-06 19:17:14 (GMT)
commit7902bd1364bfe330d5a74104326b775a35988703 (patch)
tree1cb43fe0284ee614fdcd1aba3b2475ad5f833077
parentf86441ecd43bf298fec57ee78b4c71d1b664d0a2 (diff)
downloadlinhes_pkgbuild-7902bd1364bfe330d5a74104326b775a35988703.zip
linhes_pkgbuild-7902bd1364bfe330d5a74104326b775a35988703.tar.gz
linhes_pkgbuild-7902bd1364bfe330d5a74104326b775a35988703.tar.bz2
ceton_infinitv: rebuild for kernel 4.9.20. add patch for building on 4.7+
-rwxr-xr-xabs/core/ceton_infinitv/PKGBUILD12
-rw-r--r--abs/core/ceton_infinitv/kernel-4.7+.patch14
2 files changed, 21 insertions, 5 deletions
diff --git a/abs/core/ceton_infinitv/PKGBUILD b/abs/core/ceton_infinitv/PKGBUILD
index 78d9943..d575351 100755
--- a/abs/core/ceton_infinitv/PKGBUILD
+++ b/abs/core/ceton_infinitv/PKGBUILD
@@ -2,30 +2,31 @@
pkgname=ceton_infinitv
#_kernver=`uname -r`
-_kernver=4.4.58-1-ARCH
-_extramods="extramodules-4.4-ARCH"
+_kernver=4.9.20-1-ARCH
+_extramods="extramodules-4.9-ARCH"
pkgver=2013.0326.2226
-pkgrel=19
+pkgrel=20
usb_pkgver=0.1.0
pci_pkgver=`echo $pkgver | tr . _`
pkgdesc="Drivers for Ceton InfiniTV4 - pci/usb "
arch=('i686' 'x86_64')
license=('GPL2')
url="http://cetoncorp.com/infinitv_support/linux_drivers"
-depends=('linux>=4.4' 'linux<4.5' 'libgusb' 'libnl1' 'ctntad')
+depends=('linux>=4.9' 'linux<4.10' 'libgusb' 'libnl1' 'ctntad')
makedepends=(linux-headers)
install=ceton.install
source=("http://cetoncorp.com/downloads/ceton_infinitv_linux_driver_$pci_pkgver.tar.gz"
"98-ctn91xx.rules"
"http://cetoncorp.com/downloads/infinitv-usbd-$usb_pkgver.tar.gz"
"ceton_usb_init.sh" "ifctn.sh"
- "ceton_usb_udev.rules"
+ "ceton_usb_udev.rules" "kernel-4.7+.patch"
"http://cetoncorp.com/downloads/reset_network.py"
"no-date-time-warn.patch")
build() {
cd $srcdir/ceton_infinitv_linux_driver
patch -p1 -i $srcdir/no-date-time-warn.patch
+ patch -p1 -i $srcdir/kernel-4.7+.patch
make KERNEL_VERSION=$_kernver
cd $srcdir/infinitv-usbd-$usb_pkgver
@@ -54,5 +55,6 @@ md5sums=('de329d7c9477a22fa8cb18f3a74b2ff5'
'9f95a08bdd8c2a9e8d62e7daf52a90f6'
'3fc4c4981d2dab54b297f17564b7729f'
'8da7dd477d7d47f03e85be4d6476e183'
+ '7c7a55b940c54d919271a92afa8fb489'
'e48d82ff70b05a74aaace9cdcb6875db'
'c90f09bb099d403dceeef5b09af32526')
diff --git a/abs/core/ceton_infinitv/kernel-4.7+.patch b/abs/core/ceton_infinitv/kernel-4.7+.patch
new file mode 100644
index 0000000..c47cef3
--- /dev/null
+++ b/abs/core/ceton_infinitv/kernel-4.7+.patch
@@ -0,0 +1,14 @@
+--- ceton_infinitv_linux_driver/ctn91xx_net.c.orig 2017-04-06 18:56:02.072900758 +0000
++++ ceton_infinitv_linux_driver/ctn91xx_net.c 2017-04-06 18:59:01.536518743 +0000
+@@ -228,7 +228,11 @@
+ sdump_buffer( skb->data, skb->len, "tx");
+ #endif
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
++ netif_trans_update(ndev);
++#else
+ ndev->trans_start = jiffies;
++#endif
+ ctn91xx_write8( 1, msg_base, MSG_BUFFER_MSG_AVAIL );
+
+ } else {