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 2022/07/14 06:58:04 UTC

[incubator-nuttx] 03/05: xtensa/esp32: Avoid ROM functions due to error with PIDs 2-7

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/incubator-nuttx.git

commit 60b7479f1250bb42522b7f3340211f9196e8cdf9
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Fri Jun 10 18:28:05 2022 -0300

    xtensa/esp32: Avoid ROM functions due to error with PIDs 2-7
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 arch/xtensa/Kconfig | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 525f741a78..a4b0ec869d 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -22,18 +22,18 @@ config ARCH_CHIP_ESP32
 	select ARCH_HAVE_BOOTLOADER
 	select ARCH_HAVE_TESTSET
 	select ARCH_VECNOTIRQ
-	select LIBC_ARCH_MEMCPY
-	select LIBC_ARCH_MEMCHR
-	select LIBC_ARCH_MEMCMP
-	select LIBC_ARCH_MEMMOVE
-	select LIBC_ARCH_MEMSET
-	select LIBC_ARCH_STRCHR
-	select LIBC_ARCH_STRCMP
-	select LIBC_ARCH_STRCPY
-	select LIBC_ARCH_STRLCPY
-	select LIBC_ARCH_STRNCPY
-	select LIBC_ARCH_STRLEN
-	select LIBC_ARCH_STRNLEN
+	select LIBC_ARCH_MEMCPY if BUILD_FLAT
+	select LIBC_ARCH_MEMCHR if BUILD_FLAT
+	select LIBC_ARCH_MEMCMP if BUILD_FLAT
+	select LIBC_ARCH_MEMMOVE if BUILD_FLAT
+	select LIBC_ARCH_MEMSET if BUILD_FLAT
+	select LIBC_ARCH_STRCHR if BUILD_FLAT
+	select LIBC_ARCH_STRCMP if BUILD_FLAT
+	select LIBC_ARCH_STRCPY if BUILD_FLAT
+	select LIBC_ARCH_STRLCPY if BUILD_FLAT
+	select LIBC_ARCH_STRNCPY if BUILD_FLAT
+	select LIBC_ARCH_STRLEN if BUILD_FLAT
+	select LIBC_ARCH_STRNLEN if BUILD_FLAT
 	---help---
 		The ESP32 is a dual-core system from Espressif with two Harvard
 		architecture Xtensa LX6 CPUs. All embedded memory, external memory