From cac71b25b8a0a06372b01a273581e943cd2a1053 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 11 Nov 2020 07:30:02 +0100 Subject: core/linux: do not use zstd in ultra mode --- core/linux/PKGBUILD | 5 +++++ core/linux/no-ultra-zstd.patch | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 core/linux/no-ultra-zstd.patch (limited to 'core') 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 + # --------------------------------------------------------------------------- -- cgit v1.2.3-70-g09d2