Skip to content

Commit

Permalink
compilation: armbian-kernel: Change forced uncompressed modules optio…
Browse files Browse the repository at this point in the history
…n 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: torvalds/linux@c7ff693
  • Loading branch information
ColorfulRhino committed Oct 18, 2024
1 parent c160595 commit 151619a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/functions/compilation/armbian-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
else if 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
Expand Down

0 comments on commit 151619a

Please sign in to comment.