1# SPDX-License-Identifier: GPL-2.0 2 3lib-objs := clear_page.o copy_page.o memcpy.o memset.o 4lib-objs := $(addprefix ../../../lib/, $(lib-objs)) 5 6hyp-obj-y := timer-sr.o sysreg-sr.o debug-sr.o switch.o tlb.o hyp-init.o host.o \ 7 hyp-main.o hyp-smp.o psci-relay.o alloc.o early_alloc.o page_alloc.o \ 8 cache.o setup.o mm.o mem_protect.o sys_regs.o pkvm.o stacktrace.o ffa.o \ 9 serial.o alloc_mgt.o 10hyp-obj-y += ../vgic-v3-sr.o ../aarch32.o ../vgic-v2-cpuif-proxy.o ../entry.o \ 11 ../fpsimd.o ../hyp-entry.o ../exception.o ../pgtable.o iommu/iommu.o 12hyp-obj-$(CONFIG_LIST_HARDENED) += list_debug.o 13hyp-obj-$(CONFIG_TRACING) += clock.o events.o trace.o 14hyp-obj-$(CONFIG_MODULES) += modules.o 15hyp-obj-y += $(lib-objs) 16 17#Only for built-in, not modules 18ifeq ($(CONFIG_ARM_SMMU_V3_PKVM),y) 19# There is no way to compile this separately as calling Makefile.nvhe again would 20# create duplicate sections 21hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += ../../../../../drivers/iommu/arm/arm-smmu-v3/pkvm/arm-smmu-v3.o 22hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += ../../../../../drivers/iommu/arm/arm-smmu-v3/pkvm/io-pgtable-arm.o 23hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += ../../../../../drivers/iommu/io-pgtable-arm-common.o 24endif 25 26 27hyp-obj-y += power/hvc.o 28 29$(obj)/hyp.lds: $(src)/hyp.lds.S FORCE 30 $(call if_changed_dep,cpp_lds_S) 31 32include $(srctree)/arch/arm64/kvm/hyp/nvhe/Makefile.nvhe 33obj-y := kvm_nvhe.o 34