From 5397a58731d6e9b7762dcf84488588a649aff16d Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 29 Jul 2024 22:44:01 +0800 Subject: [PATCH] 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 --- binfmt/Kconfig | 2 -- libs/libc/modlib/Kconfig | 2 +- sched/Kconfig | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/binfmt/Kconfig b/binfmt/Kconfig index 1e7c5a91a2f..ae48ecf1350 100644 --- a/binfmt/Kconfig +++ b/binfmt/Kconfig @@ -50,9 +50,7 @@ config ELF bool "Enable the ELF Binary Format" default n select BINFMT_LOADABLE - select LIBC_ARCH_ELF select LIBC_MODLIB - select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP ---help--- Enable support for the ELF binary format. Default: n diff --git a/libs/libc/modlib/Kconfig b/libs/libc/modlib/Kconfig index f1667180ad1..78ed9bda8ab 100644 --- a/libs/libc/modlib/Kconfig +++ b/libs/libc/modlib/Kconfig @@ -4,7 +4,7 @@ # config LIBC_MODLIB - bool + bool "Enable module library" default n select LIBC_ARCH_ELF select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP diff --git a/sched/Kconfig b/sched/Kconfig index 8b09ca1f025..785c86d2fea 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -1783,7 +1783,6 @@ config MODULE bool "Enable loadable OS modules" default n select LIBC_MODLIB - select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP ---help--- Enable support for loadable OS modules. Default: n