arm-bsp/trusted-services: conditionally require platforms configuration file

Guard the inclusion of platform configuration files behind an override.
This prevents unwanted platform overrides from leaking in
DEVTOOL_EXTRA_OVERRIDES of other platform builds.

Signed-off-by: Clement Faure <clement.faure@arm.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Clement Faure authored and Ross Burton committed 2026-10-02 12:07:38 +01:00
1 parent 7ad49af445
commit c0a3d1ab0e
8 files changed
+51 -26

No files matched your search

@@ -0,0 +1,16 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000:"
COMPATIBLE_MACHINE = "corstone1000"
SRC_URI:append = " \
file://0001-Revert-Load-and-store-UEFI-variable-index-in-chunks.patch \
file://0002-Remove-PLATFORM_HAS_ATTEST_PK-define-from-IAT-test.patch \
"
# The patches above introduce errors with GCC 14.1, silence them for now
CFLAGS:append = " -Wno-int-conversion -Wno-implicit-function-declaration"
EXTRA_OECMAKE:append = " \
-DCORSTONE_1000_TYPE=${CORSTONE_1000_TYPE} \
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
"
@@ -0,0 +1,3 @@
COMPATIBLE_MACHINE = "fvp-base"
TS_PLATFORM = "arm/fvp/fvp_base_revc-2xaemv8a"
@@ -1,18 +1,5 @@
FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/corstone1000:"
MACHINE_TS_REQUIRE ?= ""
MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms-corstone1000.inc"
MACHINE_TS_REQUIRE:fvp-base = "ts-arm-platforms-fvp-base.inc"
COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
SRC_URI:append:corstone1000 = " \
file://0001-Revert-Load-and-store-UEFI-variable-index-in-chunks.patch \
file://0002-Remove-PLATFORM_HAS_ATTEST_PK-define-from-IAT-test.patch \
"
# The patches above introduce errors with GCC 14.1, silence them for now
CFLAGS:append:corstone1000 = " -Wno-int-conversion -Wno-implicit-function-declaration"
COMPATIBLE_MACHINE:fvp-base = "fvp-base"
TS_PLATFORM:fvp-base = "arm/fvp/fvp_base_revc-2xaemv8a"
EXTRA_OECMAKE:append:corstone1000 = " \
-DCORSTONE_1000_TYPE=${CORSTONE_1000_TYPE} \
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
"
require ${MACHINE_TS_REQUIRE}
@@ -1,10 +1,8 @@
FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/corstone1000/psa-apitest:"
FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000/psa-apitest:"
include ts-arm-platforms.inc
SRC_URI:append:corstone1000 = " \
SRC_URI:append = " \
file://0001-corstone1000-port-crypto-config.patch;patchdir=../ts/ts-external/psatest \
file://0002-corstone1000-Disable-obsolete-algorithms.patch;patchdir=../ts/ts-external/psatest \
file://0003-corstone1000-Disable-SHA512-384.patch;patchdir=../ts/ts-external/psatest \
file://0004-Remove-RSA-support.patch;patchdir=../ts/ts-external/psatest \
"
"
@@ -1 +1,6 @@
require ts-psa-api-test.inc
PSA_TEST_TS_REQUIRE ?= ""
PSA_TEST_TS_REQUIRE:corstone1000 = "ts-psa-api-test-corstone1000.inc"
require ${PSA_TEST_TS_REQUIRE}
require ts-arm-platforms.inc
@@ -1 +1,6 @@
require ts-psa-api-test.inc
PSA_TEST_TS_REQUIRE ?= ""
PSA_TEST_TS_REQUIRE:corstone1000 = "ts-psa-api-test-corstone1000.inc"
require ${PSA_TEST_TS_REQUIRE}
require ts-arm-platforms.inc
@@ -1 +1,7 @@
require ts-psa-api-test.inc
PSA_TEST_TS_REQUIRE ?= ""
PSA_TEST_TS_REQUIRE:corstone1000 = "ts-psa-api-test-corstone1000.inc"
require ${PSA_TEST_TS_REQUIRE}
require ts-arm-platforms.inc
@@ -1 +1,6 @@
require ts-psa-api-test.inc
PSA_TEST_TS_REQUIRE ?= ""
PSA_TEST_TS_REQUIRE:corstone1000 = "ts-psa-api-test-corstone1000.inc"
require ${PSA_TEST_TS_REQUIRE}
require ts-arm-platforms.inc