arm64/mcount.c: Add to nuttx compilation

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2024-11-14 10:43:17 +08:00 committed by Xiang Xiao
parent d4f6cc229d
commit c19d440db0
2 changed files with 8 additions and 0 deletions

View file

@ -80,6 +80,10 @@ ifeq ($(CONFIG_ARCH_SETJMP_H),y)
ASRCS += arch_setjmp.S
endif
ifeq ($(CONFIG_PROFILE_NONE),)
CSRCS += mcount.c
endif
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
DEPPATH += --dep-path machine/arm64/gnu
VPATH += :machine/arm64/gnu

View file

@ -78,4 +78,8 @@ if(CONFIG_ARCH_SETJMP_H)
list(APPEND SRCS arch_setjmp.S)
endif()
if(NOT CONFIG_PROFILE_NONE)
list(APPEND SRCS mcount.c)
endif()
target_sources(c PRIVATE ${SRCS})