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:
wangmingrong1
2025-05-13 20:55:45 +08:00
committed by Xiang Xiao
parent 5206cc84d8
commit 68a1774eae
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -24,7 +24,7 @@ set(SRCS arm64_head.S)
# 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)
# Common C source files ( OS call up_xxx)
@@ -59,6 +59,10 @@ if(CONFIG_ARM64_GIC_VERSION EQUAL 2)
endif()
endif()
if(CONFIG_ARCH_HAVE_EL3)
list(APPEND SRCS arm64_smccc.S)
endif()
if(CONFIG_ARCH_HAVE_MMU)
list(APPEND SRCS arm64_mmu.c)
endif()
+5 -1
View File
@@ -31,7 +31,7 @@ STARTUP_OBJS = crt0$(OBJEXT)
# debug.
# 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
# Common C source files ( OS call up_xxx)
@@ -67,6 +67,10 @@ CMN_CSRCS += arm64_gicv2m.c
endif
endif
ifeq ($(CONFIG_ARCH_HAVE_EL3),y)
CMN_ASRCS += arm64_smccc.S
endif
ifeq ($(CONFIG_ARCH_HAVE_MMU),y)
CMN_CSRCS += arm64_mmu.c
endif