Commit f4732a7d authored by Vishnu Banavath's avatar Vishnu Banavath
Browse files

add support to build tftf test image

TFTF is test suite provided by TF-A team to test interface the TF-A
provides to non-secure software component.
In case of corstone1000, uboot is replaced with tftf.bin, meaning
using has to run following commands to build corstone1000 stack with
TFTF test enabled
$ kas shell meta-arm/kas/corstone1000-fvp.yml:meta-arm/kas/tftf.yml
$ bitbake corstone1000-fipimage-tftf
parent 4e3fc225
SUMARY = "Corstone1000 platform Image"
DESCRIPTION = "This is the main image which is the container of all the binaries \
generated for the Corstone1000 platform."
LICENSE = "MIT"
inherit image
inherit wic_nopt
COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
PREFERRED_PROVIDER_virtual/kernel:forcevariable = "linux-dummy"
python() {
if d.getVar("TFA_UBOOT") != '0':
raise bb.parse.SkipRecipe("TFA_UBOOT must be '0' to proceed or run kas shell meta-arm/kas/corstone1000-fvp.yml:meta-arm/kas/tftf.yml")
}
WKS_FILE = "corstone1000-fipimage-tftf.wks"
PACKAGE_INSTALL=""
IMAGE_FSTYPES += "wic wic.nopt"
# WIC partitioning for corstone1000
# Layout and maximum sizes (to be defined):
#
part --source rawcopy --sourceparams="file=bl2_signed.bin" --align 1 --no-table --fixed-size 100k
part --source rawcopy --sourceparams="file=bl2_signed.bin" --align 1 --no-table --fixed-size 100k
part --source rawcopy --sourceparams="file=tfm_s_signed.bin" --align 1 --no-table --fixed-size 376k
part --source rawcopy --sourceparams="file=tfm_s_signed.bin" --align 1 --no-table --fixed-size 376k
# Rawcopy of the FIP binary
part --source rawcopy --sourceparams="file=signed_fip-corstone1000.bin" --align 1 --no-table --fixed-size 2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment