blob: 341a5942e0868a50c26d3550339dcb90c84dd2fd [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001# Corstone1000 machines specific TFM support
2
3COMPATIBLE_MACHINE = "(corstone1000)"
4
5TFM_PLATFORM = "arm/corstone1000"
6
7TFM_DEBUG = "1"
8
9## Default is the MPS3 board
10TFM_PLATFORM_IS_FVP ?= "FALSE"
11EXTRA_OECMAKE += "-DPLATFORM_IS_FVP=${TFM_PLATFORM_IS_FVP}"
12EXTRA_OECMAKE += "-DCC312_LEGACY_DRIVER_API_ENABLED=OFF"
13
14# libmetal
15LICENSE += "& BSD-3-Clause"
16LIC_FILES_CHKSUM += "file://../libmetal/LICENSE.md;md5=fe0b8a4beea8f0813b606d15a3df3d3c"
17SRC_URI += "git://github.com/OpenAMP/libmetal.git;protocol=https;branch=main;name=libmetal;destsuffix=git/libmetal"
18SRCREV_libmetal = "f252f0e007fbfb8b3a52b1d5901250ddac96baad"
Patrick Williams2194f502022-10-16 14:26:09 -050019EXTRA_OECMAKE += "-DLIBMETAL_SRC_PATH=${S}/../libmetal -DLIBMETAL_BIN_PATH=${B}/libmetal-build"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040020
21# OpenAMP
22LICENSE += "& BSD-2-Clause & BSD-3-Clause"
23LIC_FILES_CHKSUM += "file://../openamp/LICENSE.md;md5=a8d8cf662ef6bf9936a1e1413585ecbf"
24SRC_URI += "git://github.com/OpenAMP/open-amp.git;protocol=https;branch=main;name=openamp;destsuffix=git/openamp"
25SRCREV_openamp = "347397decaa43372fc4d00f965640ebde042966d"
Patrick Williams2194f502022-10-16 14:26:09 -050026EXTRA_OECMAKE += "-DLIBOPENAMP_SRC_PATH=${S}/../openamp -DLIBOPENAMP_BIN_PATH=${B}/libopenamp-build"
27
Patrick Williams2390b1b2022-11-03 13:47:49 -050028# Apply the necessary changes for supporting FMP image info
29FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000:"
30SRC_URI:append:corstone1000 = " \
31 file://0001-corstone1000-platform-secure-test-framework.patch \
32 file://0002-corstone1000-make-external-system-support-optional.patch \
33 file://0003-corstone1000-enable-secure-enclave-run-without-host-.patch \
34 file://0004-Platform-Partition-Allow-configuration-of-input-and-.patch \
35 file://0005-corstone1000-support-for-UEFI-FMP-image-Information.patch \
36 file://0006-corstone1000-remove-two-partition-configuration.patch \
37 "
Brad Bishopbec4ebc2022-08-03 09:55:16 -040038
Brad Bishopbec4ebc2022-08-03 09:55:16 -040039do_install() {
40 install -D -p -m 0644 ${B}/install/outputs/tfm_s_signed.bin ${D}/firmware/tfm_s_signed.bin
41 install -D -p -m 0644 ${B}/install/outputs/bl2_signed.bin ${D}/firmware/bl2_signed.bin
42 install -D -p -m 0644 ${B}/install/outputs/bl1.bin ${D}/firmware/bl1.bin
Brad Bishopbec4ebc2022-08-03 09:55:16 -040043}