mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-11 15:00:39 +00:00
Replace inherit deploy with firmware.
Initialize TFM_DEBUG using the FIRMWARE_DEBUG_BUILD variable. Initialize
TFM_PLATFORM with FIRMWARE_PLATFORM.
Refactor do_install to use ${FIRMWARE_DIR} and remove now redundant
configuration.
Refactor corstone1000 config files to use ${FIRMWARE_DIR} and the
base do_install.
Signed-off-by: Peter Hoyes <peter.hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
55 lines
2.6 KiB
PHP
55 lines
2.6 KiB
PHP
# Corstone1000 machines specific TFM support
|
|
|
|
COMPATIBLE_MACHINE = "(corstone1000)"
|
|
|
|
TFM_PLATFORM = "arm/corstone1000"
|
|
|
|
TFM_DEBUG = "1"
|
|
|
|
# These dependencies are needed for TF-M v2.2.0 and above
|
|
# https://github.com/TrustedFirmware-M/trusted-firmware-m/blob/TF-Mv2.2.0/tools/requirements.txt
|
|
DEPENDS:append = " clang-native python3-rich-native python3-pyelftools-native"
|
|
|
|
## Default is the MPS3 board
|
|
TFM_PLATFORM_IS_FVP ?= "FALSE"
|
|
|
|
## Default is Cortex-A35
|
|
## Cortex-A320 is implemented inside a DynamIQ Shared Unit-120T (DSU-120T) cluster
|
|
EXTRA_OECMAKE:append:cortexa320 = " \
|
|
-DCORSTONE1000_CORTEX_A320=TRUE \
|
|
-DCORSTONE1000_DSU_120T=TRUE \
|
|
"
|
|
|
|
EXTRA_OECMAKE += "-DPLATFORM_IS_FVP=${TFM_PLATFORM_IS_FVP}"
|
|
EXTRA_OECMAKE += "-DCC312_LEGACY_DRIVER_API_ENABLED=OFF"
|
|
EXTRA_OECMAKE:append:corstone1000-fvp = " -DENABLE_MULTICORE=${@bb.utils.contains('MACHINE_FEATURES', 'corstone1000_fvp_smp', 'TRUE', 'FALSE', d)}"
|
|
EXTRA_OECMAKE:append:corstone1000-mps3 = " -DPLATFORM_PSA_ADAC_SECURE_DEBUG=${@bb.utils.contains('MACHINE_FEATURES', 'secure-debug', 'ON', 'OFF', d)}"
|
|
EXTRA_OECMAKE:append:corstone1000-mps3 = " -DPLATFORM_PSA_ADAC_SOURCE_PATH=${UNPACKDIR}/tfm-psa-adac -DPLATFORM_PSA_ADAC_BUILD_PATH=${B}/tfm-psa-adac-build"
|
|
|
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
|
SRC_URI:append:corstone1000 = " \
|
|
file://0001-arm-trusted-firmware-m-disable-address-warnings-into.patch \
|
|
file://0002-Platform-CS1000-Remove-unused-BL1-files.patch \
|
|
file://0003-Platform-Corstone1000-Fix-BL1-compiler-switch-and-re.patch \
|
|
file://0004-CC312-alignment-of-cc312-differences-between-fvp-and.patch \
|
|
file://0005-Platform-Corstone1000-Enable-FWU-partition.patch \
|
|
file://0006-Platform-Corstone1000-Implement-Bootloader-Abstracti.patch \
|
|
file://0007-Platform-Corstone1000-Increase-buffer-sizes.patch \
|
|
file://0008-Platform-Corstone1000-Remove-duplicate-configuration.patch \
|
|
file://0010-plat-corstone1000-Add-support-for-Cortex-A320-varian.patch \
|
|
"
|
|
|
|
FILESEXTRAPATHS:prepend:corstone1000-mps3 := "${THISDIR}/files/corstone1000/psa-adac:"
|
|
SRC_URI:append:corstone1000-mps3 = " \
|
|
file://0001-PSA-revert-header-versions.patch;patchdir=../tfm-psa-adac \
|
|
file://0002-ADAC-Link-psa_interface-instead-of-tfm_sprt.patch;patchdir=../tfm-psa-adac \
|
|
file://0003-Fix-psa_key_handle_t-initialization.patch;patchdir=../tfm-psa-adac \
|
|
"
|
|
|
|
create_bl1_image(){
|
|
dd conv=notrunc bs=1 if=${D}${FIRMWARE_DIR}/bl1_1.bin of=${D}${FIRMWARE_DIR}/bl1.bin seek=0
|
|
# Size of bl1_1.bin is 58KB (59392 bytes)
|
|
dd conv=notrunc bs=1 if=${D}${FIRMWARE_DIR}/bl1_provisioning_bundle.bin of=${D}${FIRMWARE_DIR}/bl1.bin seek=59392
|
|
}
|
|
do_install[postfuncs] += "create_bl1_image"
|