Skip to contentSkip to conversation

arago.conf, optee: enable generation of FIT image for j7-hs-evm

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arago.conf, optee: enable generation of FIT image for j7-hs-evm

---
 meta-arago-distro/conf/distro/arago.conf               |  1 +
 .../recipes-security/optee/optee-os_git.bbappend       | 10 ++++++++++
 2 files changed, 11 insertions(+)
meta-arago-distro/conf/distro/arago.conf +1 -0
index 6ea41989..bc786a77 100644
@@ -52,6 +52,7 @@ KERNEL_IMAGETYPES_am57xx-hs-evm = "zImage fitImage"
 KERNEL_IMAGETYPES_am437x-hs-evm = "zImage fitImage"
 KERNEL_IMAGETYPES_am335x-hs-evm = "zImage fitImage"
 KERNEL_IMAGETYPES_am65xx-hs-evm = "Image fitImage"
+KERNEL_IMAGETYPES_j7-hs-evm = "Image fitImage"
 
 KERNEL_IMAGETYPES_k2e-hs-evm = "zImage fitImage"
 INITRAMFS_IMAGE_k2e-hs-evm = "k2-fw-initrd"
meta-arago-distro/recipes-security/optee/optee-os_git.bbappend +10 -0
index 2fb3e279..86945545 100644
@@ -45,6 +45,16 @@ do_compile_am65xx-hs-evm() {
     )
 }
 
+do_compile_j7-hs-evm() {
+    export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
+    oe_runmake all PLATFORM=${OPTEEMACHINE} PLATFORM_FLAVOR=${OPTEEFLAVOR}
+    ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \
+        ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee-pager_v2.bin tee-pager.bin.signed; \
+        mv tee-pager.bin.signed ${B}/bl32.bin; \
+        cp tee.elf ${B}/bl32.elf; \
+    )
+}
+
 do_install() {
     #install core on boot directory
     install -d ${D}/boot
Signature · 1 line
2.17.1