mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
libc/modlib: Make modlib selectable from defconfig
since bootloader may call modlib functions directly to load elf firmware without binfmt, dlfcn or module. BTW, this patch also remove the duplicated selecttion Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -50,9 +50,7 @@ config ELF
|
|||||||
bool "Enable the ELF Binary Format"
|
bool "Enable the ELF Binary Format"
|
||||||
default n
|
default n
|
||||||
select BINFMT_LOADABLE
|
select BINFMT_LOADABLE
|
||||||
select LIBC_ARCH_ELF
|
|
||||||
select LIBC_MODLIB
|
select LIBC_MODLIB
|
||||||
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
|
|
||||||
---help---
|
---help---
|
||||||
Enable support for the ELF binary format. Default: n
|
Enable support for the ELF binary format. Default: n
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
config LIBC_MODLIB
|
config LIBC_MODLIB
|
||||||
bool
|
bool "Enable module library"
|
||||||
default n
|
default n
|
||||||
select LIBC_ARCH_ELF
|
select LIBC_ARCH_ELF
|
||||||
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
|
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
|
||||||
|
|||||||
@@ -1783,7 +1783,6 @@ config MODULE
|
|||||||
bool "Enable loadable OS modules"
|
bool "Enable loadable OS modules"
|
||||||
default n
|
default n
|
||||||
select LIBC_MODLIB
|
select LIBC_MODLIB
|
||||||
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
|
|
||||||
---help---
|
---help---
|
||||||
Enable support for loadable OS modules. Default: n
|
Enable support for loadable OS modules. Default: n
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user