Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/linux-pae
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-05-02 21:14:24 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-05-02 21:14:24 +0200
commitfc25ed0e5ef3202458be8079a61e918e383af9d8 (patch)
treefa94a47bc118a3c4a0712b1d8d340a1edcc5d7ab /extra/linux-pae
parent39fda4d8e8292e5c4eafb2e92a260bf03827fe83 (diff)
forgot to add some patches
Diffstat (limited to 'extra/linux-pae')
-rw-r--r--extra/linux-pae/PKGBUILD10
-rw-r--r--extra/linux-pae/no-ultra-zstd.patch15
2 files changed, 25 insertions, 0 deletions
diff --git a/extra/linux-pae/PKGBUILD b/extra/linux-pae/PKGBUILD
index 00448631..5da48508 100644
--- a/extra/linux-pae/PKGBUILD
+++ b/extra/linux-pae/PKGBUILD
@@ -219,6 +219,16 @@ done
# vim:set ts=8 sts=2 sw=2 et:
+# avoid using zstd compression in ultra mode (exhausts virtual memory)
+source+=('no-ultra-zstd.patch')
+sha256sums+=('d32270be5fd9c3e3ba50f3aef33f6cfcb85be0c8216f03b777287cc621fdff28')
+eval "$(
+ declare -f prepare | \
+ sed '
+ /cd/ a patch -Np1 -i $srcdir/no-ultra-zstd.patch
+ '
+)"
+
# https://bbs.archlinux32.org/viewtopic.php?pid=9109#p9109
# avoid "sleepy" VIA C7 CPUs (and possibly others)
source+=('acpi-c3.patch')
diff --git a/extra/linux-pae/no-ultra-zstd.patch b/extra/linux-pae/no-ultra-zstd.patch
new file mode 100644
index 00000000..8bab0c2c
--- /dev/null
+++ b/extra/linux-pae/no-ultra-zstd.patch
@@ -0,0 +1,15 @@
+diff -rauN a/scripts/Makefile.lib b/scripts/Makefile.lib
+--- a/scripts/Makefile.lib 2020-11-11 06:45:51.375133819 +0100
++++ b/scripts/Makefile.lib 2020-11-11 06:46:12.058448322 +0100
+@@ -499,9 +499,9 @@
+ cmd_zstd = cat $(real-prereqs) | $(ZSTD) -19 > $@
+
+ quiet_cmd_zstd22 = ZSTD22 $@
+- cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -22 --ultra > $@
++ cmd_zstd22 = cat $(real-prereqs) | $(ZSTD) -19 > $@
+
+ quiet_cmd_zstd22_with_size = ZSTD22 $@
+- cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -22 --ultra; $(size_append); } > $@
++ cmd_zstd22_with_size = { cat $(real-prereqs) | $(ZSTD) -19; $(size_append); } > $@
+
+ # ASM offsets