arm64/mcount.c: Add to nuttx compilation
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
d4f6cc229d
commit
c19d440db0
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue