Skip to content

Commit 5397a58

Browse files
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 <[email protected]>
1 parent c7455e7 commit 5397a58

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

binfmt/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ config ELF
5050
bool "Enable the ELF Binary Format"
5151
default n
5252
select BINFMT_LOADABLE
53-
select LIBC_ARCH_ELF
5453
select LIBC_MODLIB
55-
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
5654
---help---
5755
Enable support for the ELF binary format. Default: n
5856

libs/libc/modlib/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
config LIBC_MODLIB
7-
bool
7+
bool "Enable module library"
88
default n
99
select LIBC_ARCH_ELF
1010
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP

sched/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,6 @@ config MODULE
17831783
bool "Enable loadable OS modules"
17841784
default n
17851785
select LIBC_MODLIB
1786-
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
17871786
---help---
17881787
Enable support for loadable OS modules. Default: n
17891788

0 commit comments

Comments
 (0)