Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/linux
diff options
context:
space:
mode:
Diffstat (limited to 'core/linux')
-rw-r--r--core/linux/PKGBUILD5
-rw-r--r--core/linux/no-ultra-zstd.patch12
2 files changed, 17 insertions, 0 deletions
diff --git a/core/linux/PKGBUILD b/core/linux/PKGBUILD
index 66654c36..83b849b1 100644
--- a/core/linux/PKGBUILD
+++ b/core/linux/PKGBUILD
@@ -103,3 +103,8 @@ for ((i=0; i<${#source[@]}; i++)); do
)
fi
done
+
+# avoid using zstd compression in ultra mode (exhausts virtual memory)
+source+=('core/linux/no-ultra-zstd.patch')
+sha256sums+=('3997ce6033fdf950a9960f1db720b38c47b1a2e06ab75fc6712c154f596e7c47')
+# upstream prepare() does already do the *.patch patching
diff --git a/core/linux/no-ultra-zstd.patch b/core/linux/no-ultra-zstd.patch
new file mode 100644
index 00000000..e3b133d5
--- /dev/null
+++ b/core/linux/no-ultra-zstd.patch
@@ -0,0 +1,12 @@
+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
+@@ -445,7 +445,7 @@
+ cmd_zstd = { cat $(real-prereqs) | $(ZSTD) -19; $(size_append); } > $@
+
+ quiet_cmd_zstd22 = ZSTD22 $@
+- cmd_zstd22 = { cat $(real-prereqs) | $(ZSTD) -22 --ultra; $(size_append); } > $@
++ cmd_zstd22 = { cat $(real-prereqs) | $(ZSTD) -19; $(size_append); } > $@
+
+ # ASM offsets
+ # ---------------------------------------------------------------------------