mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
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: https://github.com/ulfalizer/Kconfiglib/blob/061e71f7d78cb057762d88de088055361863deff/kconfiglib.py#L4274-L4284 Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -273,14 +273,17 @@ config BASE_DEFCONFIG
|
||||
current configuration. It is useful for getting the current configuration
|
||||
on runtime.
|
||||
|
||||
config BUILD_LOADABLE
|
||||
config MODULES
|
||||
bool
|
||||
option modules
|
||||
---help---
|
||||
Automatically selected if KERNEL build is selected.
|
||||
This selection only effects the behavior of the 'make export'
|
||||
target and currently has no effect unless you wish to build
|
||||
loadable applications in a FLAT build.
|
||||
This selection marks the implementation of Kconfig
|
||||
to enable the module build function, and is used to
|
||||
enable 'm' in the triate state. Its semantics are
|
||||
consistent with Kernel. This selection also effects
|
||||
the behavior of the 'make export' target and currently
|
||||
has no effect unless you wish to build loadable applications
|
||||
in a FLAT build.
|
||||
|
||||
choice
|
||||
prompt "Memory organization"
|
||||
@@ -312,8 +315,8 @@ config BUILD_PROTECTED
|
||||
config BUILD_KERNEL
|
||||
bool "NuttX kernel build"
|
||||
depends on ARCH_USE_MMU && ARCH_ADDRENV
|
||||
select BUILD_LOADABLE
|
||||
select LIB_SYSCALL
|
||||
select MODULES
|
||||
---help---
|
||||
Builds NuttX as a separately compiled kernel. No applications are
|
||||
built. All user applications must reside in a file system where
|
||||
|
||||
Reference in New Issue
Block a user