From f82f71d180ea900d84e9619934f04aba0aa16b7a Mon Sep 17 00:00:00 2001 From: wangchengdong Date: Fri, 7 Nov 2025 16:40:36 +0800 Subject: [PATCH] libs/libc: Fix Kconfig issue for memcpy and memset Fix an issue on ARMv8-R where NEON is not supported. When NEON is disabled, the assembly-optimized implementations of memset and memcpy should not be used. Signed-off-by: Chengdong Wang --- libs/libc/machine/arm/armv8-r/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/libc/machine/arm/armv8-r/Kconfig b/libs/libc/machine/arm/armv8-r/Kconfig index 5f2e2ad1b87..8324fa0de76 100644 --- a/libs/libc/machine/arm/armv8-r/Kconfig +++ b/libs/libc/machine/arm/armv8-r/Kconfig @@ -8,9 +8,9 @@ config ARMV8R_STRING_FUNCTION default n depends on ARCH_TOOLCHAIN_GNU select ARMV8R_MEMCHR - select ARMV8R_MEMCPY + select ARMV8R_MEMCPY if ARM_NEON select ARMV8R_MEMMOVE - select ARMV8R_MEMSET + select ARMV8R_MEMSET if ARM_NEON select ARMV8R_STRCMP select ARMV8R_STRLEN @@ -19,6 +19,7 @@ config ARMV8R_MEMCHR default n select LIBC_ARCH_MEMCHR depends on ARCH_TOOLCHAIN_GNU + depends on ARM_NEON ---help--- Enable optimized ARMv8-R specific memchr() library function