modify BUILD_LOADABLE to MODULES which backwards-compatible Kernel

maintains the same semantics as Kernel’s module build
and compatible with Kconfiglib implementation.

The problem of kconfiglib not being able to use tri-states is this:
linux is here torvalds/linux@6dd85ff
The module option is extracted from one of the triate three states into a MODULE keyword.
Kconfiglib supports the default implementation of module to be MODULE for compatibility with the linux kernel, and triate degenerates into bool two states
Refer to this code: 061e71f7d7/kconfiglib.py (L4274-L4284)

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19
2024-03-15 11:19:34 +08:00
committed by Xiang Xiao
parent 0561b55860
commit 1d3dd328dd
7 changed files with 27 additions and 40 deletions

View File

@@ -22,7 +22,7 @@ config PATH_INITIAL
config BINFMT_LOADABLE
bool
select BUILD_LOADABLE
select MODULES
default n
---help---
Automatically selected if a loadable binary format is selected.