diff options
author | Joan Figueras | 2021-09-30 23:53:15 +0200 |
---|---|---|
committer | Joan Figueras | 2021-09-30 23:53:15 +0200 |
commit | 7ea967c46b82a1311f372bea30efdd4a387d1a1a (patch) | |
tree | adce296dc8740d44b6af4c3cf9f0a9f8bb6ee4c3 | |
parent | 33590ea921f2ff8834c59f645a1d4082357c471d (diff) | |
download | aur-7ea967c46b82a1311f372bea30efdd4a387d1a1a.tar.gz |
Introducing new variable to compress modules with ZSTD
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -39,6 +39,11 @@ if [ -z ${_compiler+x} ]; then _compiler=gcc fi +# Compress modules with ZSTD (to save disk space) +if [ -z ${_compress_modules+x} ]; then + _compress_modules=n +fi + # Compile ONLY used modules to VASTLY reduce the number of modules built # and the build time. # @@ -152,6 +157,11 @@ prepare() { scripts/config --disable CONFIG_NUMA fi + # Compress modules by default (following Arch's kernel) + if [ "$_compress_modules" = "y" ]; then + scripts/config --enable CONFIG_MODULE_COMPRESS_ZSTD + fi + # Let's user choose microarchitecture optimization in GCC sh ${srcdir}/choose-gcc-optimization.sh $_microarchitecture |