Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 1 | # Include Trusted Services SPs accordingly to defined machine features |
| 2 | |
| 3 | # Please notice that OPTEE will load SPs in the order listed in this file. |
| 4 | # If an SP requires another SP to be already loaded it must be listed lower. |
| 5 | |
| 6 | # TS SPs UUIDs definitions |
| 7 | require recipes-security/trusted-services/ts-uuid.inc |
| 8 | |
| 9 | TS_ENV = "opteesp" |
| 10 | TS_BIN = "${RECIPE_SYSROOT}/usr/${TS_ENV}/bin" |
| 11 | |
| 12 | # ITS SP |
| 13 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-its', \ |
| 14 | ' ts-sp-its', '' , d)}" |
| 15 | SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-its', \ |
| 16 | ' ${TS_BIN}/${ITS_UUID}.stripped.elf', '', d)}" |
| 17 | |
| 18 | # Storage SP |
| 19 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-storage', \ |
| 20 | ' ts-sp-storage', '' , d)}" |
| 21 | SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-storage', \ |
| 22 | ' ${TS_BIN}/${STORAGE_UUID}.stripped.elf', '', d)}" |
| 23 | |
| 24 | # Crypto SP. |
| 25 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-crypto', \ |
| 26 | ' ts-sp-crypto', '' , d)}" |
| 27 | SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-crypto', \ |
| 28 | ' ${TS_BIN}/${CRYPTO_UUID}.stripped.elf', '', d)}" |
| 29 | |
| 30 | # Attestation SP |
| 31 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-attestation', \ |
| 32 | ' ts-sp-attestation', '' , d)}" |
| 33 | SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-attestation', \ |
| 34 | ' ${TS_BIN}/${ATTESTATION_UUID}.stripped.elf', '', d)}" |
| 35 | |
| 36 | # Env-test SP |
| 37 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-env-test', \ |
| 38 | ' ts-sp-env-test', '' , d)}" |
| 39 | SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-env-test', \ |
| 40 | ' ${TS_BIN}/${ENV_TEST_UUID}.stripped.elf', '', d)}" |
| 41 | |
| 42 | # SE-Proxy SP |
| 43 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-se-proxy', \ |
| 44 | ' ts-sp-se-proxy', '' , d)}" |
| 45 | SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-se-proxy', \ |
| 46 | ' ${TS_BIN}/${SE_PROXY_UUID}.stripped.elf', '', d)}" |
| 47 | |
| 48 | # SMM Gateway |
| 49 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-smm-gateway', \ |
| 50 | ' ts-sp-smm-gateway', '' , d)}" |
| 51 | SP_PATHS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'ts-smm-gateway', \ |
| 52 | ' ${TS_BIN}/${SMM_GATEWAY_UUID}.stripped.elf', '', d)}" |
| 53 | |
| 54 | EXTRA_OEMAKE:append = "${@oe.utils.conditional('SP_PATHS', '', '', ' CFG_MAP_EXT_DT_SECURE=y CFG_SECURE_PARTITION=y SP_PATHS="${SP_PATHS}" ', d)}" |