This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 5397a58731 libc/modlib: Make modlib selectable from defconfig
5397a58731 is described below

commit 5397a58731d6e9b7762dcf84488588a649aff16d
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Mon Jul 29 22:44:01 2024 +0800

    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 <xiaoxi...@xiaomi.com>
---
 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 1e7c5a91a2..ae48ecf135 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 f1667180ad..78ed9bda8a 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 8b09ca1f02..785c86d2fe 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
 

Reply via email to