summaryrefslogtreecommitdiff
path: root/libre/linux-libre-pck/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-pck/PKGBUILD')
-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.