summaryrefslogtreecommitdiff
path: root/libre/linux-libre-pck
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-06-25 19:06:24 -0400
committerDavid P <megver83@parabola.nu>2018-06-25 19:06:24 -0400
commit6fbb88b1315a31fc91af87edc1bfd02e6b27da33 (patch)
treeb698b70f54fe5058ade2cb7d71c31548a3fd1762 /libre/linux-libre-pck
parent59cad02d19a88411cedbfc6f8ba21e4cf041321d (diff)
downloadabslibre-6fbb88b1315a31fc91af87edc1bfd02e6b27da33.tar.gz
abslibre-6fbb88b1315a31fc91af87edc1bfd02e6b27da33.tar.bz2
abslibre-6fbb88b1315a31fc91af87edc1bfd02e6b27da33.zip
linux-libre-pck: add sed expresion to fix tuxonice warnings
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/linux-libre-pck')
-rw-r--r--libre/linux-libre-pck/PKGBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/libre/linux-libre-pck/PKGBUILD b/libre/linux-libre-pck/PKGBUILD
index 1fc572877..c6210bffc 100644
--- a/libre/linux-libre-pck/PKGBUILD
+++ b/libre/linux-libre-pck/PKGBUILD
@@ -121,7 +121,14 @@ prepare() {
# add PCK patch
patch -p1 -i ../patch-${_pkgver}-${_pckpatchver}.patch
-
+
+ if [ "${CARCH}" = "x86_64" ]; then
+ # workaround to fix tuxonice_builtin.c warnings being treated as errors
+ sed -i \
+ 's|sys_open|ksys_open|;s|sys_ioctl|ksys_ioctl|;s|sys_read|ksys_read|;s|sys_close|ksys_close|' \
+ kernel/power/tuxonice_builtin.c
+ fi
+
if [ "${CARCH}" = "armv7h" ]; then
# RCN patch (CM3 firmware deblobbed and AUFS/WireGuard removed)
# Note: For stability reasons, AUFS has been removed in the RCN patch.