Balint Dobszay | 1bf41f5 | 2022-05-30 12:56:38 +0200 | [diff] [blame] | 1 | FVP_USE_BASE_PLAT ?= y |
| 2 | FVP_VIRTFS_ENABLE ?= y |
| 3 | FVP_VIRTFS_AUTOMOUNT ?= y |
| 4 | MEASURED_BOOT ?= y |
| 5 | MEASURED_BOOT_FTPM ?= n |
| 6 | TS_SMM_GATEWAY ?= y |
Balint Dobszay | c3d3412 | 2022-05-30 13:28:06 +0200 | [diff] [blame] | 7 | TS_UEFI_TESTS ?= y |
Balint Dobszay | a59865b | 2022-09-13 16:47:27 +0200 | [diff] [blame] | 8 | # Supported values: embedded, fip |
| 9 | SP_PACKAGING_METHOD ?= embedded |
Jelle Sels | bb5a536 | 2022-07-18 17:07:05 +0200 | [diff] [blame^] | 10 | SPMC_TESTS ?= y |
Balint Dobszay | 1bf41f5 | 2022-05-30 12:56:38 +0200 | [diff] [blame] | 11 | |
| 12 | TF_A_FLAGS ?= \ |
| 13 | BL32=$(OPTEE_OS_PAGER_V2_BIN) \ |
| 14 | BL33=$(EDK2_BIN) \ |
| 15 | PLAT=fvp \ |
| 16 | SPD=spmd \ |
| 17 | SPMD_SPM_AT_SEL2=0 \ |
Balint Dobszay | db9b8f0 | 2022-09-01 11:20:23 +0200 | [diff] [blame] | 18 | ARM_SPMC_MANIFEST_DTS=$(ROOT)/build/fvp/spmc_manifest.dts \ |
| 19 | $(TF_A_FIP_SP_FLAGS) |
Balint Dobszay | 1bf41f5 | 2022-05-30 12:56:38 +0200 | [diff] [blame] | 20 | |
| 21 | include fvp.mk |
| 22 | include trusted-services.mk |
| 23 | |
| 24 | OPTEE_OS_COMMON_EXTRA_FLAGS += \ |
| 25 | CFG_SECURE_PARTITION=y \ |
| 26 | CFG_CORE_SEL1_SPMC=y \ |
| 27 | CFG_CORE_HEAP_SIZE=131072 \ |
| 28 | CFG_DT=y \ |
| 29 | CFG_MAP_EXT_DT_SECURE=y |
| 30 | |
| 31 | # The boot order of the SPs is determined by the order of calls here. This is |
| 32 | # due to the SPMC not (yet) supporting the boot order field of the SP manifest. |
| 33 | $(eval $(call build-sp,internal-trusted-storage,dc1eef48-b17a-4ccf-ac8b-dfcff7711b14,$(SP_PSA_ITS_EXTRA_FLAGS))) |
| 34 | $(eval $(call build-sp,protected-storage,751bf801-3dde-4768-a514-0f10aeed1790,$(SP_PSA_PS_EXTRA_FLAGS))) |
| 35 | $(eval $(call build-sp,crypto,d9df52d5-16a2-4bb2-9aa4-d26d3b84e8c0,$(SP_PSA_CRYPTO_EXTRA_FLAGS))) |
| 36 | ifeq ($(MEASURED_BOOT),y) |
| 37 | $(eval $(call build-sp,attestation,a1baf155-8876-4695-8f7c-54955e8db974,$(SP_PSA_ATTESTATION_EXTRA_FLAGS))) |
| 38 | endif |
| 39 | ifeq ($(TS_SMM_GATEWAY),y) |
| 40 | $(eval $(call build-sp,smm-gateway,ed32d533-99e6-4209-9cc0-2d72cdd998a7,$(SP_SMM_GATEWAY_EXTRA_FLAGS))) |
| 41 | endif |
Balint Dobszay | c0b8fdf | 2022-06-02 14:41:54 +0200 | [diff] [blame] | 42 | |
| 43 | $(eval $(call build-ts-app,libts)) |
| 44 | $(eval $(call build-ts-app,ts-service-test)) |
| 45 | $(eval $(call build-ts-app,psa-api-test/internal_trusted_storage)) |
| 46 | $(eval $(call build-ts-app,psa-api-test/protected_storage)) |
| 47 | $(eval $(call build-ts-app,psa-api-test/crypto)) |
| 48 | ifeq ($(MEASURED_BOOT),y) |
| 49 | $(eval $(call build-ts-app,psa-api-test/initial_attestation)) |
| 50 | endif |
| 51 | ifeq ($(TS_UEFI_TESTS),y) |
| 52 | $(eval $(call build-ts-app,uefi-test)) |
| 53 | endif |
Jelle Sels | bb5a536 | 2022-07-18 17:07:05 +0200 | [diff] [blame^] | 54 | ifeq ($(SPMC_TESTS), y) |
| 55 | OPTEE_OS_COMMON_EXTRA_FLAGS += CFG_SPMC_TESTS=y |
| 56 | $(eval $(call build-sp,spm-test1,5c9edbc3-7b3a-4367-9f83-7c191ae86a37,$(SP_SPMC_TEST_EXTRA_FLAGS))) |
| 57 | $(eval $(call build-sp,spm-test2,7817164c-c40c-4d1a-867a-9bb2278cf41a,$(SP_SPMC_TEST_EXTRA_FLAGS))) |
| 58 | $(eval $(call build-sp,spm-test3,23eb0100-e32a-4497-9052-2f11e584afa6,$(SP_SPMC_TEST_EXTRA_FLAGS))) |
| 59 | endif |