You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/11/29 11:58:11 UTC

(nuttx) branch master updated (e2a82f008a -> 88dd492e4d)

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

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


    from e2a82f008a xtensa/esp32s3: Invalidate cache if the flash address used has a cache mapping.
     new 1ce1a19afd arm/clang: replace deprecated parameter
     new 27bfdf68ae stm32/ethernet: fix build warning
     new 4540dd4718 stm32/clang: enable LIBM avoid build break on clang-17
     new 0bf9e5eb8d armv6-m/dumpnvic: fix build warning
     new 88dd492e4d arm/clang: clang must depends on the implementation of the math library

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/arm/Kconfig                                   |  1 +
 arch/arm/src/armv6-m/Toolchain.defs                |  2 +-
 arch/arm/src/armv6-m/arm_dumpnvic.c                | 32 ++++++++++++----------
 arch/arm/src/armv7-m/Toolchain.defs                | 10 +++----
 arch/arm/src/armv8-m/Toolchain.defs                | 18 ++++++------
 arch/arm/src/common/Toolchain.defs                 |  9 +++++-
 arch/arm/src/stm32f7/stm32_ethernet.c              |  3 +-
 arch/arm/src/stm32h7/stm32_ethernet.c              |  3 +-
 arch/arm/src/tlsr82/Toolchain.defs                 |  2 +-
 boards/arm/stm32/omnibusf4/configs/nsh/defconfig   |  1 +
 .../configs/tcpblaster/defconfig                   |  1 +
 .../linum-stm32h753bi/configs/nsh/defconfig        |  1 +
 .../stm32h7/nucleo-h743zi/configs/elf/defconfig    |  1 +
 13 files changed, 49 insertions(+), 35 deletions(-)


(nuttx) 02/05: stm32/ethernet: fix build warning

Posted by xi...@apache.org.
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

commit 27bfdf68aefc4c356e1951dff32f0c06eaf4c9b5
Author: chao an <an...@xiaomi.com>
AuthorDate: Wed Nov 29 09:48:31 2023 +0800

    stm32/ethernet: fix build warning
    
    chip/stm32_ethernet.c:2014:7: warning: variable 'i' set but not used [-Wunused-but-set-variable]
     2014 |   int i;
          |       ^
    1 warning generated.
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 arch/arm/src/stm32f7/stm32_ethernet.c | 3 +--
 arch/arm/src/stm32h7/stm32_ethernet.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm/src/stm32f7/stm32_ethernet.c b/arch/arm/src/stm32f7/stm32_ethernet.c
index 92daf09f5d..28c80a43ef 100644
--- a/arch/arm/src/stm32f7/stm32_ethernet.c
+++ b/arch/arm/src/stm32f7/stm32_ethernet.c
@@ -1898,7 +1898,6 @@ static void stm32_receive(struct stm32_ethmac_s *priv)
 static void stm32_freeframe(struct stm32_ethmac_s *priv)
 {
   struct eth_txdesc_s *txdesc;
-  int i;
 
   ninfo("txhead: %p txtail: %p inflight: %d\n",
         priv->txhead, priv->txtail, priv->inflight);
@@ -1915,7 +1914,7 @@ static void stm32_freeframe(struct stm32_ethmac_s *priv)
       up_invalidate_dcache((uintptr_t)txdesc,
                            (uintptr_t)txdesc + sizeof(struct eth_txdesc_s));
 
-      for (i = 0; (txdesc->tdes0 & ETH_TDES0_OWN) == 0; i++)
+      while ((txdesc->tdes0 & ETH_TDES0_OWN) == 0)
         {
           /* There should be a buffer assigned to all in-flight
            * TX descriptors.
diff --git a/arch/arm/src/stm32h7/stm32_ethernet.c b/arch/arm/src/stm32h7/stm32_ethernet.c
index 3a0314578e..c2719303b4 100644
--- a/arch/arm/src/stm32h7/stm32_ethernet.c
+++ b/arch/arm/src/stm32h7/stm32_ethernet.c
@@ -2011,7 +2011,6 @@ static void stm32_freeframe(struct stm32_ethmac_s *priv)
 {
   struct eth_desc_s *txdesc;
   uint32_t des3_tmp;
-  int i;
 
   ninfo("txhead: %p txtail: %p inflight: %d\n",
         priv->txhead, priv->txtail, priv->inflight);
@@ -2028,7 +2027,7 @@ static void stm32_freeframe(struct stm32_ethmac_s *priv)
       up_invalidate_dcache((uintptr_t)txdesc,
                            (uintptr_t)txdesc + sizeof(struct eth_desc_s));
 
-      for (i = 0; (txdesc->des3 & ETH_TDES3_RD_OWN) == 0; i++)
+      while ((txdesc->des3 & ETH_TDES3_RD_OWN) == 0)
         {
           /* There should be a buffer assigned to all in-flight
            * TX descriptors.


(nuttx) 05/05: arm/clang: clang must depends on the implementation of the math library

Posted by xi...@apache.org.
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

commit 88dd492e4dae1fcf2f1d441586ec9a47a909701d
Author: chao an <an...@xiaomi.com>
AuthorDate: Wed Nov 29 13:27:07 2023 +0800

    arm/clang: clang must depends on the implementation of the math library
    
    Since picolibc used by clang-17 does not provide an implementation of libm,
    if you want to use clang, please must specify a libm as an option.
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 00ddc87c0f..4e3279f103 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -40,6 +40,7 @@ config ARM_TOOLCHAIN_GNU_OABI
 
 config ARM_TOOLCHAIN_CLANG
 	bool "LLVM Clang toolchain"
+	depends on !LIBM_TOOLCHAIN
 	select ARCH_TOOLCHAIN_CLANG
 
 config ARM_TOOLCHAIN_ARMCLANG


(nuttx) 01/05: arm/clang: replace deprecated parameter

Posted by xi...@apache.org.
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

commit 1ce1a19afd994936f3452bd6c6b84662b56358d5
Author: chao an <an...@xiaomi.com>
AuthorDate: Tue Nov 28 15:19:11 2023 +0800

    arm/clang: replace deprecated parameter
    
    In LLVM Clang 17.0.1, the `--config` parameter has been deprecated and replaced by the `-target` parameter
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 arch/arm/src/armv6-m/Toolchain.defs |  2 +-
 arch/arm/src/armv7-m/Toolchain.defs | 10 +++++-----
 arch/arm/src/armv8-m/Toolchain.defs | 18 +++++++++---------
 arch/arm/src/common/Toolchain.defs  |  9 ++++++++-
 arch/arm/src/tlsr82/Toolchain.defs  |  2 +-
 5 files changed, 24 insertions(+), 17 deletions(-)

diff --git a/arch/arm/src/armv6-m/Toolchain.defs b/arch/arm/src/armv6-m/Toolchain.defs
index 2a105f9168..bd88911bf4 100644
--- a/arch/arm/src/armv6-m/Toolchain.defs
+++ b/arch/arm/src/armv6-m/Toolchain.defs
@@ -30,7 +30,7 @@ LLVM_CPUTYPE  := cortex-m0
 # Clang Configuration files
 
 ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
-  TOOLCHAIN_CLANG_CONFIG = --config armv6m_soft_nofp
+  TOOLCHAIN_CLANG_CONFIG = armv6m_soft_nofp
 else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
   LDFLAGS += --cpu=Cortex-M0
 endif
diff --git a/arch/arm/src/armv7-m/Toolchain.defs b/arch/arm/src/armv7-m/Toolchain.defs
index bee4b56803..86c7a666a3 100644
--- a/arch/arm/src/armv7-m/Toolchain.defs
+++ b/arch/arm/src/armv7-m/Toolchain.defs
@@ -72,18 +72,18 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
 
   ifeq ($(CONFIG_ARCH_CORTEXM4),y)
     ifeq ($(CONFIG_ARCH_FPU),y)
-      TOOLCHAIN_CLANG_CONFIG = --config armv7em_hard_fpv4_sp_d16
+      TOOLCHAIN_CLANG_CONFIG = armv7em_hard_fpv4_sp_d16
     else
-      TOOLCHAIN_CLANG_CONFIG = --config armv7em_soft_nofp
+      TOOLCHAIN_CLANG_CONFIG = armv7em_soft_nofp
     endif
   else ifeq ($(CONFIG_ARCH_CORTEXM7),y)
     ifeq ($(CONFIG_ARCH_FPU),y)
-      TOOLCHAIN_CLANG_CONFIG = --config armv7em_hard_fpv5_d16
+      TOOLCHAIN_CLANG_CONFIG = armv7em_hard_fpv5_d16
     else
-      TOOLCHAIN_CLANG_CONFIG = --config armv7em_soft_nofp
+      TOOLCHAIN_CLANG_CONFIG = armv7em_soft_nofp
     endif
   else # ifeq ($(CONFIG_ARCH_CORTEXM3),y)
-      TOOLCHAIN_CLANG_CONFIG = --config armv7m_soft_nofp
+      TOOLCHAIN_CLANG_CONFIG = armv7m_soft_nofp
   endif
 
 else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
diff --git a/arch/arm/src/armv8-m/Toolchain.defs b/arch/arm/src/armv8-m/Toolchain.defs
index 79bc8c6985..04036b021f 100644
--- a/arch/arm/src/armv8-m/Toolchain.defs
+++ b/arch/arm/src/armv8-m/Toolchain.defs
@@ -109,30 +109,30 @@ endif
 ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
 
   ifeq ($(CONFIG_ARCH_CORTEXM23),y)
-    TOOLCHAIN_CLANG_CONFIG = --config armv8m.main_soft_nofp
+    TOOLCHAIN_CLANG_CONFIG = armv8m.main_soft_nofp
   else ifeq ($(CONFIG_ARCH_CORTEXM33),y)
     ifeq ($(CONFIG_ARCH_FPU),y)
-      TOOLCHAIN_CLANG_CONFIG = --config armv8m.main_hard_fp
+      TOOLCHAIN_CLANG_CONFIG = armv8m.main_hard_fp
     else
-      TOOLCHAIN_CLANG_CONFIG = --config armv8m.main_soft_nofp
+      TOOLCHAIN_CLANG_CONFIG = armv8m.main_soft_nofp
     endif
   else ifeq ($(CONFIG_ARCH_CORTEXM35P),y)
     ifeq ($(CONFIG_ARCH_FPU),y)
-      TOOLCHAIN_CLANG_CONFIG = --config armv8m.main_hard_fp
+      TOOLCHAIN_CLANG_CONFIG = armv8m.main_hard_fp
     else
-      TOOLCHAIN_CLANG_CONFIG = --config armv8m.main_soft_nofp
+      TOOLCHAIN_CLANG_CONFIG = armv8m.main_soft_nofp
     endif
   else ifeq ($(CONFIG_ARCH_CORTEXM55),y)
     ifeq ($(CONFIG_ARCH_FPU),y)
-      TOOLCHAIN_CLANG_CONFIG = --config armv8.1m.main_hard_fp
+      TOOLCHAIN_CLANG_CONFIG = armv8.1m.main_hard_fp
     else
-      TOOLCHAIN_CLANG_CONFIG = --config armv8.1m.main_soft_nofp_nomve
+      TOOLCHAIN_CLANG_CONFIG = armv8.1m.main_soft_nofp_nomve
     endif
   else ifeq ($(CONFIG_ARCH_CORTEXM85),y)
     ifeq ($(CONFIG_ARCH_FPU),y)
-      TOOLCHAIN_CLANG_CONFIG = --config armv8.1m.main_hard_fp
+      TOOLCHAIN_CLANG_CONFIG = armv8.1m.main_hard_fp
     else
-      TOOLCHAIN_CLANG_CONFIG = --config armv8.1m.main_soft_nofp_nomve
+      TOOLCHAIN_CLANG_CONFIG = armv8.1m.main_soft_nofp_nomve
     endif
   endif
 
diff --git a/arch/arm/src/common/Toolchain.defs b/arch/arm/src/common/Toolchain.defs
index e72d678f58..991ce31b81 100644
--- a/arch/arm/src/common/Toolchain.defs
+++ b/arch/arm/src/common/Toolchain.defs
@@ -185,7 +185,14 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
       TOOLCHAIN_CLANG_CONFIG := $(TOOLCHAIN_CLANG_CONFIG)_nosys
     endif
 
-    ARCHCPUFLAGS += $(TOOLCHAIN_CLANG_CONFIG).cfg
+    ifeq ($(CLANGVER),17.0)
+      TOOLCHAIN_CLANG_OPTION = -target
+      ARCHCPUFLAGS += --target=arm-none-eabi
+    else
+      TOOLCHAIN_CLANG_OPTION = --config
+    endif
+
+    ARCHCPUFLAGS := $(TOOLCHAIN_CLANG_OPTION) $(TOOLCHAIN_CLANG_CONFIG).cfg $(ARCHCPUFLAGS)
   endif
 
 # ARM Compiler Clang toolchain
diff --git a/arch/arm/src/tlsr82/Toolchain.defs b/arch/arm/src/tlsr82/Toolchain.defs
index 50f730f00f..7e665770db 100644
--- a/arch/arm/src/tlsr82/Toolchain.defs
+++ b/arch/arm/src/tlsr82/Toolchain.defs
@@ -21,7 +21,7 @@
 # Clang Configuration files
 
 ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
-  TOOLCHAIN_CLANG_CONFIG = --config armv6m_soft_nofp
+  TOOLCHAIN_CLANG_CONFIG = armv6m_soft_nofp
 endif
 
 # Generic GNU EABI toolchain


(nuttx) 04/05: armv6-m/dumpnvic: fix build warning

Posted by xi...@apache.org.
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

commit 0bf9e5eb8de7ec13b1b6f86cf39a0f857f5f40ea
Author: chao an <an...@xiaomi.com>
AuthorDate: Wed Nov 29 15:21:12 2023 +0800

    armv6-m/dumpnvic: fix build warning
    
    armv6-m/arm_dumpnvic.c: In function 'arm_dumpnvic':
    armv6-m/arm_dumpnvic.c:67:13: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
       67 |       _info("   IPR%d: %08x  IPR%d: %08x  IPR%d: %08x  IPR%d: %08x\n",
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    armv6-m/arm_dumpnvic.c:67:27: note: format string is defined here
       67 |       _info("   IPR%d: %08x  IPR%d: %08x  IPR%d: %08x  IPR%d: %08x\n",
          |                        ~~~^
          |                           |
          |                           unsigned int
          |                        %08lx
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 arch/arm/src/armv6-m/arm_dumpnvic.c | 32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

diff --git a/arch/arm/src/armv6-m/arm_dumpnvic.c b/arch/arm/src/armv6-m/arm_dumpnvic.c
index 5213593073..04032feab4 100644
--- a/arch/arm/src/armv6-m/arm_dumpnvic.c
+++ b/arch/arm/src/armv6-m/arm_dumpnvic.c
@@ -57,26 +57,30 @@ void arm_dumpnvic(const char *msg)
   flags = enter_critical_section();
 
   _info("NVIC: %s\n", msg);
-  _info("   ISER: %08x  ICER: %08x  ISPR: %08x  ICPR: %08x\n",
-       getreg32(ARMV6M_NVIC_ISER), getreg32(ARMV6M_NVIC_ICER),
-       getreg32(ARMV6M_NVIC_ISPR), getreg32(ARMV6M_NVIC_ICPR));
+  _info("   ISER: %08" PRIx32 "  ICER: %08" PRIx32
+        "  ISPR: %08" PRIx32 "  ICPR: %08" PRIx32 "\n",
+        getreg32(ARMV6M_NVIC_ISER), getreg32(ARMV6M_NVIC_ICER),
+        getreg32(ARMV6M_NVIC_ISPR), getreg32(ARMV6M_NVIC_ICPR));
 
   for (i = 0 ; i < 8; i += 4)
     {
-      _info("   IPR%d: %08x  IPR%d: %08x  IPR%d: %08x  IPR%d: %08x\n",
-           i,     getreg32(ARMV6M_NVIC_IPR(i)),
-           i + 1, getreg32(ARMV6M_NVIC_IPR(i + 1)),
-           i + 2, getreg32(ARMV6M_NVIC_IPR(i + 2)),
-           i + 3, getreg32(ARMV6M_NVIC_IPR(i + 3)));
+      _info("   IPR%d: %08" PRIx32 "  IPR%d: %08" PRIx32
+            "  IPR%d: %08" PRIx32 "  IPR%d: %08" PRIx32 "\n",
+            i,     getreg32(ARMV6M_NVIC_IPR(i)),
+            i + 1, getreg32(ARMV6M_NVIC_IPR(i + 1)),
+            i + 2, getreg32(ARMV6M_NVIC_IPR(i + 2)),
+            i + 3, getreg32(ARMV6M_NVIC_IPR(i + 3)));
     }
 
   _info("SYSCON:\n");
-  _info("  CPUID: %08x  ICSR: %08x AIRCR: %08x   SCR: %08x\n",
-       getreg32(ARMV6M_SYSCON_CPUID), getreg32(ARMV6M_SYSCON_ICSR),
-       getreg32(ARMV6M_SYSCON_AIRCR), getreg32(ARMV6M_SYSCON_SCR));
-  _info("    CCR: %08x SHPR2: %08x SHPR3: %08x\n",
-       getreg32(ARMV6M_SYSCON_CCR),   getreg32(ARMV6M_SYSCON_SHPR2),
-       getreg32(ARMV6M_SYSCON_SHPR3));
+  _info("  CPUID: %08" PRIx32 "  ICSR: %08" PRIx32
+        " AIRCR: %08" PRIx32 "   SCR: %08" PRIx32 "\n",
+        getreg32(ARMV6M_SYSCON_CPUID), getreg32(ARMV6M_SYSCON_ICSR),
+        getreg32(ARMV6M_SYSCON_AIRCR), getreg32(ARMV6M_SYSCON_SCR));
+  _info("    CCR: %08" PRIx32 " SHPR2: %08" PRIx32
+        " SHPR3: %08" PRIx32 "\n",
+        getreg32(ARMV6M_SYSCON_CCR),   getreg32(ARMV6M_SYSCON_SHPR2),
+        getreg32(ARMV6M_SYSCON_SHPR3));
 
   leave_critical_section(flags);
 #endif


(nuttx) 03/05: stm32/clang: enable LIBM avoid build break on clang-17

Posted by xi...@apache.org.
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

commit 4540dd4718ecec66896b21caedb453ed2f265f9d
Author: chao an <an...@xiaomi.com>
AuthorDate: Tue Nov 28 22:17:52 2023 +0800

    stm32/clang: enable LIBM avoid build break on clang-17
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 boards/arm/stm32/omnibusf4/configs/nsh/defconfig                 | 1 +
 boards/arm/stm32/viewtool-stm32f107/configs/tcpblaster/defconfig | 1 +
 boards/arm/stm32h7/linum-stm32h753bi/configs/nsh/defconfig       | 1 +
 boards/arm/stm32h7/nucleo-h743zi/configs/elf/defconfig           | 1 +
 4 files changed, 4 insertions(+)

diff --git a/boards/arm/stm32/omnibusf4/configs/nsh/defconfig b/boards/arm/stm32/omnibusf4/configs/nsh/defconfig
index 434a965107..1cc7730685 100644
--- a/boards/arm/stm32/omnibusf4/configs/nsh/defconfig
+++ b/boards/arm/stm32/omnibusf4/configs/nsh/defconfig
@@ -47,6 +47,7 @@ CONFIG_INTELHEX_BINARY=y
 CONFIG_IOB_NBUFFERS=24
 CONFIG_IOB_NCHAINS=8
 CONFIG_LIBC_HOSTNAME="omnibusf4"
+CONFIG_LIBM=y
 CONFIG_M25P_SPIFREQUENCY=75000000
 CONFIG_MMCSD=y
 CONFIG_MM_IOB=y
diff --git a/boards/arm/stm32/viewtool-stm32f107/configs/tcpblaster/defconfig b/boards/arm/stm32/viewtool-stm32f107/configs/tcpblaster/defconfig
index d5c556005c..9e99a61ed8 100644
--- a/boards/arm/stm32/viewtool-stm32f107/configs/tcpblaster/defconfig
+++ b/boards/arm/stm32/viewtool-stm32f107/configs/tcpblaster/defconfig
@@ -24,6 +24,7 @@ CONFIG_INTELHEX_BINARY=y
 CONFIG_IOB_NBUFFERS=50
 CONFIG_IOB_NCHAINS=12
 CONFIG_LIBC_HOSTNAME="Viewtool-STM32F107"
+CONFIG_LIBM=y
 CONFIG_NET=y
 CONFIG_NETINIT_NOMAC=y
 CONFIG_NETINIT_THREAD=y
diff --git a/boards/arm/stm32h7/linum-stm32h753bi/configs/nsh/defconfig b/boards/arm/stm32h7/linum-stm32h753bi/configs/nsh/defconfig
index 4f218ce3f4..95667437d0 100644
--- a/boards/arm/stm32h7/linum-stm32h753bi/configs/nsh/defconfig
+++ b/boards/arm/stm32h7/linum-stm32h753bi/configs/nsh/defconfig
@@ -28,6 +28,7 @@ CONFIG_DEBUG_SYMBOLS=y
 CONFIG_EXAMPLES_ALARM=y
 CONFIG_INIT_ENTRYPOINT="nsh_main"
 CONFIG_INTELHEX_BINARY=y
+CONFIG_LIBM=y
 CONFIG_MM_REGIONS=4
 CONFIG_NSH_ARCHINIT=y
 CONFIG_NSH_BUILTIN_APPS=y
diff --git a/boards/arm/stm32h7/nucleo-h743zi/configs/elf/defconfig b/boards/arm/stm32h7/nucleo-h743zi/configs/elf/defconfig
index 1c5bd7d554..4e8b9991b8 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/configs/elf/defconfig
+++ b/boards/arm/stm32h7/nucleo-h743zi/configs/elf/defconfig
@@ -37,6 +37,7 @@ CONFIG_HAVE_CXX=y
 CONFIG_HAVE_CXXINITIALIZE=y
 CONFIG_INIT_ENTRYPOINT="nsh_main"
 CONFIG_INTELHEX_BINARY=y
+CONFIG_LIBM=y
 CONFIG_MM_REGIONS=4
 CONFIG_NSH_ARCHINIT=y
 CONFIG_NSH_BUILTIN_APPS=y