Skip to contentSkip to conversation

trusted-firmware-a: upstreamed and unified to meta-arm, drop locally

PATCH New Denys Dmytriyenko 1 participant 1 message May 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trusted-firmware-a: upstreamed and unified to meta-arm, drop locally

From: Denys Dmytriyenko <[email protected]>

---
 conf/machine/include/k3.inc                        |  3 +
 .../arm-trusted-firmware_2.2.bb                    | 79 ----------------------
 .../trusted-firmware-a_%.bbappend                  | 23 +++++++
 recipes-bsp/u-boot/u-boot-ti.inc                   |  2 +-
 4 files changed, 27 insertions(+), 80 deletions(-)
 delete mode 100644 recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb
 create mode 100644 recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
conf/machine/include/k3.inc +3 -0
index 54b1789..6b78f4c 100644
@@ -26,6 +26,9 @@ UBOOT_SUFFIX = "img"
 
 EXTRA_IMAGEDEPENDS += "virtual/bootloader"
 
+TFA_PLATFORM = "k3"
+TFA_BOARD = "generic"
+
 MACHINE_GUI_CLASS = "smallscreen"
 
 # Use the expected value of the ubifs filesystem's volume name in the kernel
recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb deleted +0 -79

79 lines not on this page · raw message

recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend new file +23 -0
new file mode 100644
index 0000000..d43e7c5
@@ -0,0 +1,23 @@
+BRANCH_k3 = "ti-atf"
+SRC_URI_k3 = "git://git.ti.com/atf/arm-trusted-firmware.git;branch=${BRANCH}"
+SRCREV_k3 = "5b907a2813faf039d752cdeb6a7b94e95580c46b"
+COMPATIBLE_MACHINE_k3 = "k3"
+TFA_BUILD_TARGET_k3 = "all"
+TFA_INSTALL_TARGET_k3 = "bl31"
+TFA_SPD_k3 = "opteed"
+
+do_compile_append_am65xx-hs-evm() {
+	export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
+	( cd ${B}/${BUILD_DIR}/release/; \
+		mv bl31.bin bl31.bin.unsigned; \
+		${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \
+	)
+}
+
+do_compile_append_j7-hs-evm() {
+	export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
+	( cd ${B}/${BUILD_DIR}/release/; \
+		mv bl31.bin bl31.bin.unsigned; \
+		${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \
+	)
+}
recipes-bsp/u-boot/u-boot-ti.inc +1 -1
index 8f8f0af..062a692 100644
@@ -33,7 +33,7 @@ PV_append = "+git${SRCPV}"
 # u-boot needs devtree compiler to parse dts files
 DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native"
 
-PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/boot/bl31.bin,,arm-trusted-firmware"
+PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a"
 PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}/boot/bl32.bin,,optee-os"
 
 PACKAGECONFIG_append_aarch64 = " atf optee"
Signature · 1 line
2.7.4