From 4b3343b4a98b03321bb4982bc3dc20a1475c098b Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 14 Apr 2021 15:47:23 +0200 Subject: [PATCH] arm/optee-os: deploy tee.elf for u-boot Integration of OP-TEE in the u-boot image is done with `TEE=tee.elf`, so this build artifact must be exported. U-boot integration can now be done in a BSP layer with something like this in `u-boot_%.bbappend`: # OP-TEE, dependent on "optee" DISTRO_FEATURES OPTEE_OEMAKE ?= " TEE=${DEPLOY_DIR_IMAGE}/optee/tee.elf" EXTRA_OEMAKE_append = " ${PACKAGECONFIG_CONFARGS}" PACKAGECONFIG[optee] = "${OPTEE_OEMAKE},,optee-os" PACKAGECONFIG_append = " ${@bb.utils.filter('DISTRO_FEATURES', 'optee', d)}" Signed-off-by: Yann Dirson Signed-off-by: Jon Mason --- meta-arm/recipes-security/optee/optee-os.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-arm/recipes-security/optee/optee-os.inc b/meta-arm/recipes-security/optee/optee-os.inc index 34f586a0..08cc2f0c 100644 --- a/meta-arm/recipes-security/optee/optee-os.inc +++ b/meta-arm/recipes-security/optee/optee-os.inc @@ -45,7 +45,7 @@ do_compile[cleandirs] = "${B}" do_install() { #install core in firmware install -d ${D}${nonarch_base_libdir}/firmware/ - install -m 644 ${B}/core/*.bin ${D}${nonarch_base_libdir}/firmware/ + install -m 644 ${B}/core/*.bin ${B}/core/tee.elf ${D}${nonarch_base_libdir}/firmware/ #install TA devkit install -d ${D}${includedir}/optee/export-user_ta/