summaryrefslogtreecommitdiff
path: root/scripts/package-build/linux-kernel/config
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-07-08 20:45:13 +0200
committerChristian Breunig <christian@breunig.cc>2026-07-08 20:45:13 +0200
commit21c7e66112d3ec360a9902037d086fdb15e4ebeb (patch)
tree696d40eea8b9b201c8784ed49c7466ff4a16afe6 /scripts/package-build/linux-kernel/config
parent12038e88d4fe42617f9cd39ccfd1184a52e5810a (diff)
downloadvyos-build-21c7e66112d3ec360a9902037d086fdb15e4ebeb.tar.gz
vyos-build-21c7e66112d3ec360a9902037d086fdb15e4ebeb.zip
Kernel: T5641: enable module compression to save disk space
After signing the Linux Kernel modules with the ephemeral key, proceed by compressing the Kernel modules with xz to reduce the final ISO image size. Initial tests have shown a size reduction by 60MiB.
Diffstat (limited to 'scripts/package-build/linux-kernel/config')
-rw-r--r--scripts/package-build/linux-kernel/config/02-module-signing.config6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/package-build/linux-kernel/config/02-module-signing.config b/scripts/package-build/linux-kernel/config/02-module-signing.config
index d981ea63..3b98bc1e 100644
--- a/scripts/package-build/linux-kernel/config/02-module-signing.config
+++ b/scripts/package-build/linux-kernel/config/02-module-signing.config
@@ -22,3 +22,9 @@ CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
CONFIG_MODULE_SIG_KEY_TYPE_RSA=y
# CONFIG_MODULE_SIG_KEY_TYPE_ECDSA is not set
+CONFIG_MODULE_COMPRESS=y
+# CONFIG_MODULE_COMPRESS_GZIP is not set
+CONFIG_MODULE_COMPRESS_XZ=y
+# CONFIG_MODULE_COMPRESS_ZSTD is not set
+CONFIG_MODULE_COMPRESS_ALL=y
+CONFIG_MODULE_DECOMPRESS=y