blob: 5e10ba8f2dbb7a112bcc41a79ffcdb2df34d8fa2 [file] [log] [blame]
Balint Dobszay1bf41f52022-05-30 12:56:38 +02001FVP_USE_BASE_PLAT ?= y
2FVP_VIRTFS_ENABLE ?= y
3FVP_VIRTFS_AUTOMOUNT ?= y
4MEASURED_BOOT ?= y
5MEASURED_BOOT_FTPM ?= n
6TS_SMM_GATEWAY ?= y
Balint Dobszayc3d34122022-05-30 13:28:06 +02007TS_UEFI_TESTS ?= y
Balint Dobszaydb9b8f02022-09-01 11:20:23 +02008SP_PACKAGING_METHOD ?= embedded # Supported values: embedded, fip
Balint Dobszay1bf41f52022-05-30 12:56:38 +02009
10TF_A_FLAGS ?= \
11 BL32=$(OPTEE_OS_PAGER_V2_BIN) \
12 BL33=$(EDK2_BIN) \
13 PLAT=fvp \
14 SPD=spmd \
15 SPMD_SPM_AT_SEL2=0 \
Balint Dobszaydb9b8f02022-09-01 11:20:23 +020016 ARM_SPMC_MANIFEST_DTS=$(ROOT)/build/fvp/spmc_manifest.dts \
17 $(TF_A_FIP_SP_FLAGS)
Balint Dobszay1bf41f52022-05-30 12:56:38 +020018
19include fvp.mk
20include trusted-services.mk
21
22OPTEE_OS_COMMON_EXTRA_FLAGS += \
23 CFG_SECURE_PARTITION=y \
24 CFG_CORE_SEL1_SPMC=y \
25 CFG_CORE_HEAP_SIZE=131072 \
26 CFG_DT=y \
27 CFG_MAP_EXT_DT_SECURE=y
28
29# The boot order of the SPs is determined by the order of calls here. This is
30# due to the SPMC not (yet) supporting the boot order field of the SP manifest.
31$(eval $(call build-sp,internal-trusted-storage,dc1eef48-b17a-4ccf-ac8b-dfcff7711b14,$(SP_PSA_ITS_EXTRA_FLAGS)))
32$(eval $(call build-sp,protected-storage,751bf801-3dde-4768-a514-0f10aeed1790,$(SP_PSA_PS_EXTRA_FLAGS)))
33$(eval $(call build-sp,crypto,d9df52d5-16a2-4bb2-9aa4-d26d3b84e8c0,$(SP_PSA_CRYPTO_EXTRA_FLAGS)))
34ifeq ($(MEASURED_BOOT),y)
35$(eval $(call build-sp,attestation,a1baf155-8876-4695-8f7c-54955e8db974,$(SP_PSA_ATTESTATION_EXTRA_FLAGS)))
36endif
37ifeq ($(TS_SMM_GATEWAY),y)
38$(eval $(call build-sp,smm-gateway,ed32d533-99e6-4209-9cc0-2d72cdd998a7,$(SP_SMM_GATEWAY_EXTRA_FLAGS)))
39endif
Balint Dobszayc0b8fdf2022-06-02 14:41:54 +020040
41$(eval $(call build-ts-app,libts))
42$(eval $(call build-ts-app,ts-service-test))
43$(eval $(call build-ts-app,psa-api-test/internal_trusted_storage))
44$(eval $(call build-ts-app,psa-api-test/protected_storage))
45$(eval $(call build-ts-app,psa-api-test/crypto))
46ifeq ($(MEASURED_BOOT),y)
47$(eval $(call build-ts-app,psa-api-test/initial_attestation))
48endif
49ifeq ($(TS_UEFI_TESTS),y)
50$(eval $(call build-ts-app,uefi-test))
51endif