mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
arm64/smc: Support limited compilation
Only el3 arch may need to use it, let's limit it to Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
5206cc84d8
commit
68a1774eae
@@ -24,7 +24,7 @@ set(SRCS arm64_head.S)
|
|||||||
|
|
||||||
# TODO: support kernel startup obj ctr0
|
# TODO: support kernel startup obj ctr0
|
||||||
|
|
||||||
list(APPEND SRCS arm64_vector_table.S arm64_vectors.S arm64_smccc.S)
|
list(APPEND SRCS arm64_vector_table.S arm64_vectors.S)
|
||||||
list(APPEND SRCS arm64_fork_func.S)
|
list(APPEND SRCS arm64_fork_func.S)
|
||||||
|
|
||||||
# Common C source files ( OS call up_xxx)
|
# Common C source files ( OS call up_xxx)
|
||||||
@@ -59,6 +59,10 @@ if(CONFIG_ARM64_GIC_VERSION EQUAL 2)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_ARCH_HAVE_EL3)
|
||||||
|
list(APPEND SRCS arm64_smccc.S)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CONFIG_ARCH_HAVE_MMU)
|
if(CONFIG_ARCH_HAVE_MMU)
|
||||||
list(APPEND SRCS arm64_mmu.c)
|
list(APPEND SRCS arm64_mmu.c)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ STARTUP_OBJS = crt0$(OBJEXT)
|
|||||||
# debug.
|
# debug.
|
||||||
|
|
||||||
# Common assembly language files
|
# Common assembly language files
|
||||||
CMN_ASRCS = arm64_vector_table.S arm64_vectors.S arm64_smccc.S
|
CMN_ASRCS = arm64_vector_table.S arm64_vectors.S
|
||||||
CMN_ASRCS += arm64_fork_func.S
|
CMN_ASRCS += arm64_fork_func.S
|
||||||
|
|
||||||
# Common C source files ( OS call up_xxx)
|
# Common C source files ( OS call up_xxx)
|
||||||
@@ -67,6 +67,10 @@ CMN_CSRCS += arm64_gicv2m.c
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ARCH_HAVE_EL3),y)
|
||||||
|
CMN_ASRCS += arm64_smccc.S
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_HAVE_MMU),y)
|
ifeq ($(CONFIG_ARCH_HAVE_MMU),y)
|
||||||
CMN_CSRCS += arm64_mmu.c
|
CMN_CSRCS += arm64_mmu.c
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user