Skip to content

Commit

Permalink
cmake(bugfix):add xtensa libc machine function build
Browse files Browse the repository at this point in the history
Signed-off-by: xuxin19 <[email protected]>
  • Loading branch information
xuxin930 authored and xiaoxiang781216 committed Nov 3, 2024
1 parent 90e2395 commit 299ef62
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion libs/libc/machine/xtensa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,39 @@
#
# ##############################################################################
if(CONFIG_LIBC_ARCH_ELF)
target_sources(c PRIVATE arch_elf.c)
list(APPEND CSRCS arch_elf.c)
endif()

if(CONFIG_XTENSA_MEMCPY)
list(APPEND CSRCS arch_memcpy.S)
endif()

if(CONFIG_XTENSA_MEMMOVE)
list(APPEND CSRCS arch_memmove.S)
endif()

if(CONFIG_XTENSA_MEMSET)
list(APPEND CSRCS arch_memset.S)
endif()

if(CONFIG_ARCH_SETJMP_H)
list(APPEND CSRCS arch_setjmp.S)
endif()

if(CONFIG_XTENSA_STRCPY)
list(APPEND CSRCS arch_strcpy.S)
endif()

if(CONFIG_XTENSA_STRLEN)
list(APPEND CSRCS arch_strlen.S)
endif()

if(CONFIG_XTENSA_STRNCPY)
list(APPEND CSRCS arch_strncpy.S)
endif()

if(CONFIG_XTENSA_STRCMP)
list(APPEND CSRCS arch_strcmp.S)
endif()

target_sources(c PRIVATE ${CSRCS})

0 comments on commit 299ef62

Please sign in to comment.