summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Severance2019-03-10 20:49:25 -0400
committerChris Severance2019-03-10 20:49:25 -0400
commite662affcd219f45e561fca7048a05148858a1938 (patch)
treeca9d8c68f1ac81f6c0c89d18048caddc3265a362 /PKGBUILD
parent8a18dd275b71ade2836ebd7ccff497113a6f8f68 (diff)
downloadaur-connecttech-cti-serial.tar.gz
autu: Update to 1.42-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 14 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ef088c02b48..56d4ba38c4f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,6 @@
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Todo: remove source file reference (__FILE__?) from cti_serial_core.ko
-# Todo: cti driver does not show running card in lspci -k Kernel driver in use:
# Todo: driver should only create /dev/ttyCTI* for number of ports found
# Todo: make install for utilities
# Todo: How do we configure Xtreme/104 with setserial according to readme.txt
@@ -18,7 +17,7 @@ _opt_DKMS=1 # This can be toggled between installs
set -u
pkgname='connecttech-cti-serial'
pkgver='1.42'
-pkgrel='1'
+pkgrel='2'
pkgdesc='tty UART driver for BlueStorm BlueHeat Xtreme/104-Plus Titan and Xtreme/104-Express families'
arch=('i686' 'x86_64')
url='http://connecttech.com/product/pci-express-bluestorm-express/'
@@ -31,8 +30,12 @@ install="${pkgname}-install.sh"
_srcdir="cti_serial_${pkgver//./}"
source=(
"file://${_srcdir}.tgz"
+ '0000-kernel-4.18-proc_fops-to-proc_show.patch' # https://patchwork.kernel.org/patch/10349751/
+ '0001-kernel-5.0.0-8250_core-access_ok.patch' # https://lkml.org/lkml/2019/1/4/418
)
-sha256sums=('9833dfcac4b9116c1d22dcee16bb0533e7b3ab0ae3291c4570e716e1e991f042')
+sha256sums=('9833dfcac4b9116c1d22dcee16bb0533e7b3ab0ae3291c4570e716e1e991f042'
+ 'bfe7886f273eed35d36956c143cd07fa1c6c9448cf21f8484bb5a0872ea6d04e'
+ 'fbb546222486ccbd3fc0cfaf44c146208a27507c20788602fcc6e77853692b00')
if [ "${_opt_DKMS}" -ne 0 ]; then
depends+=('linux' 'dkms' 'linux-headers')
@@ -69,6 +72,14 @@ prepare() {
_install_check
cd "${_srcdir}"
+ #cp -p driver/serial_core.c{,.orig}; false
+ #diff -pNau5 driver/serial_core.c{.orig,} > '0000-kernel-4.18-proc_fops-to-proc_show.patch'
+ patch -Nbup0 -i "${srcdir}/0000-kernel-4.18-proc_fops-to-proc_show.patch"
+
+ #cp -p driver/8250_core.c{,.orig}; false
+ #diff -pNau5 driver/8250_core.c{.orig,} > '0001-kernel-5.0.0-8250_core-access_ok.patch'
+ patch -Nbup0 -i "${srcdir}/0001-kernel-5.0.0-8250_core-access_ok.patch"
+
pushd 'driver' > /dev/null
# Fix permissions
find -type 'f' -perm '/111' -exec chmod 644 '{}' '+'