diff --git a/bl31/bl31.mk b/bl31/bl31.mk index 8dde8cb54..40add916e 100644 --- a/bl31/bl31.mk +++ b/bl31/bl31.mk @@ -45,7 +45,6 @@ BL31_SOURCES += bl31/bl31_main.c \ lib/cpus/aarch64/dsu_helpers.S \ plat/common/aarch64/platform_mp_stack.S \ services/arm_arch_svc/arm_arch_svc_setup.c \ - services/el3/ven_el3_svc.c \ services/std_svc/std_svc_setup.c \ ${PSCI_LIB_SOURCES} \ ${SPMD_SOURCES} \ @@ -53,13 +52,17 @@ BL31_SOURCES += bl31/bl31_main.c \ ${SPMC_SOURCES} \ ${SPM_SOURCES} +VENDOR_EL3_SRCS += services/el3/ven_el3_svc.c + ifeq (${ENABLE_PMF}, 1) -BL31_SOURCES += lib/pmf/pmf_main.c +BL31_SOURCES += lib/pmf/pmf_main.c \ + ${VENDOR_EL3_SRCS} endif include lib/debugfs/debugfs.mk ifeq (${USE_DEBUGFS},1) - BL31_SOURCES += $(DEBUGFS_SRCS) +BL31_SOURCES += ${DEBUGFS_SRCS} \ + ${VENDOR_EL3_SRCS} endif ifeq (${PLATFORM_REPORT_CTX_MEM_USE},1) diff --git a/bl32/sp_min/sp_min.mk b/bl32/sp_min/sp_min.mk index 8f2cac742..b1f4343f4 100644 --- a/bl32/sp_min/sp_min.mk +++ b/bl32/sp_min/sp_min.mk @@ -18,12 +18,12 @@ BL32_SOURCES += bl32/sp_min/sp_min_main.c \ common/runtime_svc.c \ plat/common/aarch32/plat_sp_min_common.c \ services/arm_arch_svc/arm_arch_svc_setup.c \ - services/el3/ven_el3_svc.c \ services/std_svc/std_svc_setup.c \ ${PSCI_LIB_SOURCES} ifeq (${ENABLE_PMF}, 1) -BL32_SOURCES += lib/pmf/pmf_main.c +BL32_SOURCES += services/el3/ven_el3_svc.c \ + lib/pmf/pmf_main.c endif ifneq (${ENABLE_FEAT_AMU},0)