diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-03-19 17:35:37 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-04-01 21:38:25 +0200 |
commit | d7cc755f2ddef75c6ab25171df07388e04d5a0cb (patch) | |
tree | 8a6c19c0f961d523edb47756d37b4c34be4f79cb /platforms/tf-a.in | |
parent | 327162aeb0efdc576ec7f1767f76a266a26a7c13 (diff) | |
download | ptxdist-d7cc755f2ddef75c6ab25171df07388e04d5a0cb.tar.gz ptxdist-d7cc755f2ddef75c6ab25171df07388e04d5a0cb.tar.xz |
tf-a: new package for ARM trusted firmware A
Trusted Firmware-A (TF-A) is a reference implementation of secure world
software for Arm A-Profile architectures (Armv8-A and Armv7-A).
Tested-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Message-Id: <20200319163536.5669-1-a.fatoum@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'platforms/tf-a.in')
-rw-r--r-- | platforms/tf-a.in | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/platforms/tf-a.in b/platforms/tf-a.in new file mode 100644 index 000000000..ba04f44be --- /dev/null +++ b/platforms/tf-a.in @@ -0,0 +1,141 @@ +## SECTION=bootloader + +menuconfig TF_A + select BOOTLOADER + select HOST_DTC + prompt "ARM Trusted Firmware-A " + depends on ARCH_ARM || ARCH_ARM64 + bool + +if TF_A + +config TF_A_VERSION + string + default "v2.2" + prompt "TF-A version" + help + Enter the TF-A git commit-ish you want to build. Usually a tagged + release like "v2.2" + +config TF_A_MD5 + string + default "bb300e5a62c911e189c80d935d497a4b" + prompt "TF-A source md5" + +config TF_A_ARCH_STRING + string + default "aarch32" if ARCH_ARM + default "aarch64" if ARCH_ARM64 + +choice + prompt "TF-A Architecture" + default TF_A_ARM_ARCH_MAJOR_7 if ARCH_ARM + default TF_A_ARM_ARCH_MAJOR_8 if ARCH_ARM64 + help + Architecture version major number + + config TF_A_ARM_ARCH_MAJOR_7 + depends on ARCH_ARM + prompt "ARMv7" + bool + + config TF_A_ARM_ARCH_MAJOR_8_32_BIT + depends on ARCH_ARM + prompt "ARMv8 32-bit" + bool + + config TF_A_ARM_ARCH_MAJOR_8 + depends on ARCH_ARM64 + prompt "ARMv8" + bool + +endchoice + +config TF_A_ARM_ARCH_MAJOR + int + default 7 if TF_A_ARM_ARCH_MAJOR_7 + default 8 if TF_A_ARM_ARCH_MAJOR_8_32_BIT + default 8 if TF_A_ARM_ARCH_MAJOR_8 + + +config TF_A_PLATFORM + string + prompt "TF-A target platform" + help + The TF-A target platform. + +config TF_A_ARM_ARCH_MINOR + depends on TF_A_ARM_ARCH_MAJOR_8 || TF_A_ARM_ARCH_MAJOR_8_32_BIT + int + default 0 + prompt "TF-A target ARMv8.MINOR version" + help + The minor version of the ARMv8 architecture targeted. Defaults to 0. + +config TF_A_EXTRA_ARGS + string + prompt "TF-A extra build arguments" + help + Extra platform-specific build arguments to pass to the TF-A build + process, e.g. DTB_FILE_NAME= for the stm32mp1 + +config TF_A_ARTIFACTS + string + prompt "TF-A artifact file names" + help + A space-separated list of glob patterns of artifacts to copy from the + build directory. + All file names are relative to the appropriate TF-A platform build + directory. + +comment "Payloads" + +choice + prompt "BL32 Payload" + default TF_A_BL32_NONE + help + payload for BL32 (Secure World OS) + + config TF_A_BL32_NONE + prompt "None" + bool + + config TF_A_BL32_SP_MIN + depends on ARCH_ARM + prompt "sp_min" + bool + + config TF_A_BL32_TSP + depends on ARCH_ARM64 + prompt "Test Secure Payload" + bool + +endchoice + +if TF_A_BL32_TSP +choice TF_A_BL32_TSP_RAM_LOCATION + prompt "TSP location" + default TF_A_BL32_TSP_RAM_LOCATION_TSRAM + + config TF_A_BL32_TSP_RAM_LOCATION_TSRAM + prompt "Trusted SRAM" + bool + + config TF_A_BL32_TSP_RAM_LOCATION_TDRAM + prompt "Trusted DRAM (if available)" + bool + + config TF_A_BL32_TSP_RAM_LOCATION_DRAM + prompt "Secure DRAM region (configured by TrustZone controller)" + bool +endchoice + +config TF_A_BL32_TSP_RAM_LOCATION_STRING + string + default "tsram" if TF_A_BL32_TSP_RAM_LOCATION_TSRAM + default "tdram" if TF_A_BL32_TSP_RAM_LOCATION_TDRAM + default "dram" if TF_A_BL32_TSP_RAM_LOCATION_DRAM + +endif + +endif |