Skip to content

Commit eb1fd94

Browse files
committed
recipes-bsp: Add trusted-firmware-a support for RB3Gen2
Add RB3Gen2 platform specific support leveraging base trusted-firmware-a recipes from meta-arm. It allows to generate unsigned bl2.elf and test signed fip.elf as per TF-A documentation here [1]. [1] https://github.com/qualcomm-linux/trusted-firmware-a/blob/qcom-next/docs/plat/qti/rb3gen2.rst Signed-off-by: Sumit Garg <[email protected]>
1 parent b27df00 commit eb1fd94

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# RB3Gen2 specific TFA support
2+
3+
COMPATIBLE_MACHINE = "qcm6490"
4+
TFA_PLATFORM = "rb3gen2"
5+
TFA_BUILD_TARGET = "bl2 fip"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SRCBRANCH = "qcom-next"
2+
SRC_URI = "git://github.com/qualcomm-linux/trusted-firmware-a.git;protocol=https;name=tfa;branch=${SRCBRANCH}"
3+
SRCREV_tfa = "164d443c8e92c18fd2cca03661dd1a2b9ac37848"
4+
LIC_FILES_CHKSUM = "file://docs/license.rst;md5=6ed7bace7b0bc63021c6eba7b524039e"
5+
6+
DEPENDS += "qtestsign-native"
7+
8+
MACHINE_TFA_REQUIRE ?= ""
9+
MACHINE_TFA_REQUIRE:qcm6490 = "trusted-firmware-a-qcm6490.inc"
10+
11+
require ${MACHINE_TFA_REQUIRE}
12+
13+
do_install:append:qcm6490() {
14+
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1
15+
16+
${OBJCOPY} -I binary -B aarch64 -O elf64-littleaarch64 ${D}/firmware/fip.bin ${D}/firmware/fip.o
17+
${LD} ${D}/firmware/fip.o -o ${D}/firmware/fip_unsigned.elf -EL -T ${S}/tools/qti/fip-elf.lds --defsym=ELFENTRY=0x9fc00000 -Ttext=0x9fc00000
18+
rm -f ${D}/firmware/fip.o
19+
20+
qtestsign -v6 aboot -o ${D}/firmware/fip.elf ${D}/firmware/fip_unsigned.elf
21+
rm -f ${D}/firmware/fip_unsigned.elf
22+
}

0 commit comments

Comments
 (0)