From 82aa7b3963f9196ebb452aa5f80b1eb8351dea8d Mon Sep 17 00:00:00 2001 From: ColorfulRhino <131405023+ColorfulRhino@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:25:44 +0200 Subject: [PATCH] compilation: armbian-kernel: Change forced uncompressed modules option for kernels >=v6.12 The kernel option `CONFIG_MODULE_COMPRESS_NONE` was superseded by `CONFIG_MODULE_COMPRESS` in 6.12. Adapt the kernel compilation script accordingly to force the correct kernel option. Source: https://github.com/torvalds/linux/commit/c7ff693fa2094ba0a9d0a20feb4ab1658eff9c33 --- lib/functions/compilation/armbian-kernel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions/compilation/armbian-kernel.sh b/lib/functions/compilation/armbian-kernel.sh index 4fe51859b539..e15ecf3bfbd5 100644 --- a/lib/functions/compilation/armbian-kernel.sh +++ b/lib/functions/compilation/armbian-kernel.sh @@ -23,7 +23,9 @@ function armbian_kernel_config__disable_various_options() { kernel_config_set_n CONFIG_MODULE_COMPRESS_ZSTD kernel_config_set_n CONFIG_MODULE_COMPRESS_GZIP - if linux-version compare "${KERNEL_MAJOR_MINOR}" ge 6.0; then + if linux-version compare "${KERNEL_MAJOR_MINOR}" ge 6.12; then + kernel_config_set_n CONFIG_MODULE_COMPRESS # Introduced in 6.12 (see https://github.com/torvalds/linux/commit/c7ff693fa2094ba0a9d0a20feb4ab1658eff9c33) + elif linux-version compare "${KERNEL_MAJOR_MINOR}" ge 6.0; then kernel_config_set_y CONFIG_MODULE_COMPRESS_NONE # Introduced in 6.0 else kernel_config_set_n CONFIG_MODULE_COMPRESS # Only available up to 5.12