Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # Corstone1000 machines specific TFM support |
| 2 | |
| 3 | COMPATIBLE_MACHINE = "(corstone1000)" |
| 4 | |
| 5 | TFM_PLATFORM = "arm/corstone1000" |
| 6 | |
| 7 | TFM_DEBUG = "1" |
| 8 | |
| 9 | ## Default is the MPS3 board |
| 10 | TFM_PLATFORM_IS_FVP ?= "FALSE" |
| 11 | EXTRA_OECMAKE += "-DPLATFORM_IS_FVP=${TFM_PLATFORM_IS_FVP}" |
| 12 | EXTRA_OECMAKE += "-DCC312_LEGACY_DRIVER_API_ENABLED=OFF" |
| 13 | |
| 14 | # libmetal |
| 15 | LICENSE += "& BSD-3-Clause" |
| 16 | LIC_FILES_CHKSUM += "file://../libmetal/LICENSE.md;md5=fe0b8a4beea8f0813b606d15a3df3d3c" |
| 17 | SRC_URI += "git://github.com/OpenAMP/libmetal.git;protocol=https;branch=main;name=libmetal;destsuffix=git/libmetal" |
| 18 | SRCREV_libmetal = "f252f0e007fbfb8b3a52b1d5901250ddac96baad" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 19 | EXTRA_OECMAKE += "-DLIBMETAL_SRC_PATH=${S}/../libmetal -DLIBMETAL_BIN_PATH=${B}/libmetal-build" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 20 | |
| 21 | # OpenAMP |
| 22 | LICENSE += "& BSD-2-Clause & BSD-3-Clause" |
| 23 | LIC_FILES_CHKSUM += "file://../openamp/LICENSE.md;md5=a8d8cf662ef6bf9936a1e1413585ecbf" |
| 24 | SRC_URI += "git://github.com/OpenAMP/open-amp.git;protocol=https;branch=main;name=openamp;destsuffix=git/openamp" |
| 25 | SRCREV_openamp = "347397decaa43372fc4d00f965640ebde042966d" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 26 | EXTRA_OECMAKE += "-DLIBOPENAMP_SRC_PATH=${S}/../openamp -DLIBOPENAMP_BIN_PATH=${B}/libopenamp-build" |
| 27 | |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 28 | # Apply the necessary changes for supporting FMP image info |
| 29 | FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000:" |
| 30 | SRC_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 \ |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 37 | file://0007-corstone1000-adjust-PS-asset-configuration.patch \ |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 38 | " |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 39 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 40 | do_install() { |
| 41 | install -D -p -m 0644 ${B}/install/outputs/tfm_s_signed.bin ${D}/firmware/tfm_s_signed.bin |
| 42 | install -D -p -m 0644 ${B}/install/outputs/bl2_signed.bin ${D}/firmware/bl2_signed.bin |
| 43 | install -D -p -m 0644 ${B}/install/outputs/bl1.bin ${D}/firmware/bl1.bin |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 44 | } |