mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-11 15:00:39 +00:00
Update the OP-TEE OS build logic to detect `MACHINE_FEATURES` and append the appropriate `arm64-platform-cpuarch` value to `EXTRA_OEMAKE`, instead of hard-coding `cortex-a35`. This change ensures that when `MACHINE_FEATURES` includes `cortexa320`, the OP-TEE build receives the matching `core-arch` flag, while maintaining `cortex-a35` as the default. The new Corstone-1000 variant with Cortex-A320 replaces the original GIC-400 (v2) interrupt controller with a GIC-600, which is architecturally compliant with GICv3. Since OP-TEE already provides a generic GICv3 driver, only minimal platform changes are needed to expose the updated register map and initialize the GICv3 interface. Signed-off-by: Hugues KAMBA MPIANA <hugues.kambampiana@arm.com> Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
26 lines
854 B
PHP
26 lines
854 B
PHP
FILESEXTRAPATHS:prepend := "${THISDIR}/files/optee-os/corstone1000:"
|
|
|
|
SRC_URI:append = " \
|
|
file://0001-plat-corstone1000-Add-Cortex-A320-support.patch \
|
|
"
|
|
|
|
COMPATIBLE_MACHINE = "corstone1000"
|
|
|
|
OPTEEMACHINE = "corstone1000"
|
|
# Enable optee memory layout and boot logs
|
|
EXTRA_OEMAKE += " CFG_TEE_CORE_LOG_LEVEL=4"
|
|
|
|
# default disable latency benchmarks (over all OP-TEE layers)
|
|
EXTRA_OEMAKE += " CFG_TEE_BENCHMARK=n"
|
|
|
|
EXTRA_OEMAKE += " CFG_CORE_SEL1_SPMC=y CFG_CORE_FFA=y"
|
|
|
|
EXTRA_OEMAKE += " CFG_WITH_SP=y"
|
|
|
|
EXTRA_OEMAKE:append:corstone1000-fvp = "${@bb.utils.contains('MACHINE_FEATURES', 'corstone1000_fvp_smp', ' CFG_TEE_CORE_NB_CORE=4', '', d)}"
|
|
|
|
# Override OP-TEE OS ARM64 core architecture based on MACHINE_FEATURES
|
|
CPUARCH = "cortex-a35"
|
|
CPUARCH:cortexa320 = "cortex-a320"
|
|
EXTRA_OEMAKE:append:corstone1000 = " arm64-platform-cpuarch=${CPUARCH}"
|