blob: 33c04aaa733a83f736b3bbc91d9730cf637c91c5 [file] [log] [blame]
FVP_USE_BASE_PLAT ?= y
FVP_VIRTFS_ENABLE ?= y
FVP_VIRTFS_AUTOMOUNT ?= y
MEASURED_BOOT ?= y
MEASURED_BOOT_FTPM ?= n
TS_SMM_GATEWAY ?= y
TS_UEFI_TESTS ?= n
# Supported values: embedded, fip
SP_PACKAGING_METHOD ?= embedded
SPMC_TESTS ?= n
# TS SP configurations
DEFAULT_SP_CONFIG ?= default-opteesp
SP_BLOCK_STORAGE_CONFIG ?= $(DEFAULT_SP_CONFIG)
SP_PSA_ITS_CONFIG ?= $(DEFAULT_SP_CONFIG)
SP_PSA_PS_CONFIG ?= $(DEFAULT_SP_CONFIG)
SP_PSA_CRYPTO_CONFIG ?= $(DEFAULT_SP_CONFIG)
SP_PSA_ATTESTATION_CONFIG ?= $(DEFAULT_SP_CONFIG)
SP_SMM_GATEWAY_CONFIG ?= $(DEFAULT_SP_CONFIG)
TF_A_FLAGS ?= \
BL32=$(OPTEE_OS_PAGER_V2_BIN) \
BL33=$(EDK2_BIN) \
PLAT=fvp \
SPD=spmd \
SPMD_SPM_AT_SEL2=0 \
ARM_SPMC_MANIFEST_DTS=$(ROOT)/build/fvp/spmc_manifest.dts \
$(TF_A_FIP_SP_FLAGS)
include fvp.mk
include trusted-services.mk
OPTEE_OS_COMMON_EXTRA_FLAGS += \
CFG_SECURE_PARTITION=y \
CFG_CORE_SEL1_SPMC=y \
CFG_CORE_HEAP_SIZE=131072 \
CFG_DT=y \
CFG_MAP_EXT_DT_SECURE=y
# The boot order of the SPs is determined by the order of calls here. This is
# due to the SPMC not (yet) supporting the boot order field of the SP manifest.
$(eval $(call build-sp,block-storage,config/$(SP_BLOCK_STORAGE_CONFIG),63646e80-eb52-462f-ac4f-8cdf3987519c,$(SP_BLOCK_STORAGE_EXTRA_FLAGS)))
$(eval $(call build-sp,internal-trusted-storage,config/$(SP_PSA_ITS_CONFIG),dc1eef48-b17a-4ccf-ac8b-dfcff7711b14,$(SP_PSA_ITS_EXTRA_FLAGS)))
$(eval $(call build-sp,protected-storage,config/$(SP_PSA_PS_CONFIG),751bf801-3dde-4768-a514-0f10aeed1790,$(SP_PSA_PS_EXTRA_FLAGS)))
$(eval $(call build-sp,crypto,config/$(SP_PSA_CRYPTO_CONFIG),d9df52d5-16a2-4bb2-9aa4-d26d3b84e8c0,$(SP_PSA_CRYPTO_EXTRA_FLAGS)))
ifeq ($(MEASURED_BOOT),y)
$(eval $(call build-sp,attestation,config/$(SP_PSA_ATTESTATION_CONFIG),a1baf155-8876-4695-8f7c-54955e8db974,$(SP_PSA_ATTESTATION_EXTRA_FLAGS)))
endif
ifeq ($(TS_SMM_GATEWAY),y)
$(eval $(call build-sp,smm-gateway,config/$(SP_SMM_GATEWAY_CONFIG),ed32d533-99e6-4209-9cc0-2d72cdd998a7,$(SP_SMM_GATEWAY_EXTRA_FLAGS)))
endif
$(eval $(call build-ts-app,libts))
$(eval $(call build-ts-app,ts-service-test))
$(eval $(call build-ts-app,psa-api-test/internal_trusted_storage))
$(eval $(call build-ts-app,psa-api-test/protected_storage))
$(eval $(call build-ts-app,psa-api-test/crypto))
ifeq ($(MEASURED_BOOT),y)
$(eval $(call build-ts-app,psa-api-test/initial_attestation))
endif
ifeq ($(TS_UEFI_TESTS),y)
$(eval $(call build-ts-app,uefi-test))
endif
ifeq ($(SPMC_TESTS), y)
OPTEE_OS_COMMON_EXTRA_FLAGS += CFG_SPMC_TESTS=y
$(eval $(call build-sp,spm-test1,opteesp,5c9edbc3-7b3a-4367-9f83-7c191ae86a37,$(SP_SPMC_TEST_EXTRA_FLAGS)))
$(eval $(call build-sp,spm-test2,opteesp,7817164c-c40c-4d1a-867a-9bb2278cf41a,$(SP_SPMC_TEST_EXTRA_FLAGS)))
$(eval $(call build-sp,spm-test3,opteesp,23eb0100-e32a-4497-9052-2f11e584afa6,$(SP_SPMC_TEST_EXTRA_FLAGS)))
endif