blob: a8e76d016bb696a0df7388605755e770177e8d03 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001# Corstone1000 machines specific TFM support
2
3COMPATIBLE_MACHINE = "(corstone1000)"
4
5TFM_PLATFORM = "arm/corstone1000"
6
7TFM_DEBUG = "1"
8
Andrew Geissler517393d2023-01-13 08:55:19 -06009## 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"
19EXTRA_OECMAKE += "-DLIBMETAL_SRC_PATH=${S}/../libmetal -DLIBMETAL_BIN_PATH=${B}/libmetal-build"
20
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"
26EXTRA_OECMAKE += "-DLIBOPENAMP_SRC_PATH=${S}/../openamp -DLIBOPENAMP_BIN_PATH=${B}/libopenamp-build"
27
28
Andrew Geissler9347dd42023-03-03 12:38:41 -060029FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
Andrew Geissler2daf84b2023-03-31 09:57:23 -050030SRC_URI:append:corstone1000 = " \
31 file://0001-Platform-corstone1000-Introduce-IO-framework.patch \
32 file://0002-Platform-corstone1000-Add-IO-test-in-ci_regressions.patch \
33 file://0003-Platform-corstone1000-Add-soft-crc32-calculation.patch \
34 file://0004-Platform-corstone1000-calculate-metadata-crc32.patch \
35 file://0005-Platform-corstone1000-fwu-metadata_read-validate-crc.patch \
36 file://0006-Platform-corstone1000-Add-common-platform-logger.patch \
37 file://0007-Platform-corstone1000-Introduce-GPT-parser.patch \
38 file://0008-Platform-corstone1000-BL1-changes-to-adapt-to-new-fl.patch \
39 file://0009-Platform-corstone1000-BL2-uses-GPT-layout.patch \
40 file://0010-Platform-corstone1000-flash_layout-simplification.patch \
41 file://0011-corstone1000-make-sure-to-write-fwu-metadata-to-repl.patch \
Andrew Geissler9347dd42023-03-03 12:38:41 -060042 "
43
Andrew Geissler517393d2023-01-13 08:55:19 -060044do_install() {
45 install -D -p -m 0644 ${B}/install/outputs/tfm_s_signed.bin ${D}/firmware/tfm_s_signed.bin
46 install -D -p -m 0644 ${B}/install/outputs/bl2_signed.bin ${D}/firmware/bl2_signed.bin
47 install -D -p -m 0644 ${B}/install/outputs/bl1.bin ${D}/firmware/bl1.bin
48}