kconfigcheck: Only require zstd module (de)compression on 6.2 or newer

The in-kernel zstd module decompression exists since kernel 6.2 [1], so
in order to accomodate split initramfs devices, we can only safely
require zstd module compression and decompression on 6.2 or newer.

[1]: 169a58ad82

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7952>
This commit is contained in:
Aelin 2026-02-07 16:46:40 +01:00 committed by [Merge Bot]
parent 3838b98352
commit bebe107f52
No known key found for this signature in database

View file

@ -85,10 +85,13 @@ LBDAF = "y"
# Provide a proper dummy null console to improve compatibility
# on devices that like to coerce console=null
NULL_TTY = "m"
["category:default".">=5.13.0"."all"]
["category:default".">=6.2.0"."all"]
# MODULE_COMPRESS_ZSTD exists since 5.13, but since kernels prior to 6.2 cannot
# decompress it, we would break devices with split initramfs which use busybox
# modprobe, so we only enforce it on 6.2 or newer
MODULE_COMPRESS = "y"
MODULE_COMPRESS_ZSTD = "y"
["category:default".">=5.17.0"."all"]
# MODULE_DECOMPRESS exists since 5.17, but can only decompress zstd since 6.2
MODULE_DECOMPRESS = "y"
["category:default".">=5.19.0"."all"]
FW_LOADER_COMPRESS = "y"