* [PATCH v2] arm/optee-os: deploy tee.elf for u-boot
@ 2021-04-20 11:01 Ross Burton
2021-04-20 11:37 ` [meta-arm] " Ross Burton
0 siblings, 1 reply; 2+ messages in thread
From: Ross Burton @ 2021-04-20 11:01 UTC (permalink / raw)
To: meta-arm; +Cc: yann
From: Yann Dirson <yann@blade-group.com>
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)}"
Also add required INSANE_SKIP as tee.elf has relocations [RB]
Change-Id: I29385c08c18b096438398c968440e5091cf222f8
Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
meta-arm/recipes-security/optee/optee-os.inc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta-arm/recipes-security/optee/optee-os.inc b/meta-arm/recipes-security/optee/optee-os.inc
index d3b8caa..d8dcb8f 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/
@@ -68,6 +68,7 @@ SYSROOT_DIRS += "${nonarch_base_libdir}/firmware"
FILES_${PN} = "${nonarch_base_libdir}/firmware/"
FILES_${PN}-dev = "${includedir}/optee/"
+INSANE_SKIP_${PN} += "textrel"
INSANE_SKIP_${PN}-dev = "staticdev"
INHIBIT_PACKAGE_STRIP = "1"
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-arm] [PATCH v2] arm/optee-os: deploy tee.elf for u-boot
2021-04-20 11:01 [PATCH v2] arm/optee-os: deploy tee.elf for u-boot Ross Burton
@ 2021-04-20 11:37 ` Ross Burton
0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2021-04-20 11:37 UTC (permalink / raw)
To: Ross Burton; +Cc: meta-arm, Yann Dirson
Ignore this, Yann sent one already.
On Tue, 20 Apr 2021 at 12:01, Ross Burton via lists.yoctoproject.org
<ross=burtonini.com@lists.yoctoproject.org> wrote:
>
> From: Yann Dirson <yann@blade-group.com>
>
> 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)}"
>
> Also add required INSANE_SKIP as tee.elf has relocations [RB]
>
> Change-Id: I29385c08c18b096438398c968440e5091cf222f8
> Signed-off-by: Yann Dirson <yann@blade-group.com>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
> meta-arm/recipes-security/optee/optee-os.inc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta-arm/recipes-security/optee/optee-os.inc b/meta-arm/recipes-security/optee/optee-os.inc
> index d3b8caa..d8dcb8f 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/
> @@ -68,6 +68,7 @@ SYSROOT_DIRS += "${nonarch_base_libdir}/firmware"
> FILES_${PN} = "${nonarch_base_libdir}/firmware/"
> FILES_${PN}-dev = "${includedir}/optee/"
>
> +INSANE_SKIP_${PN} += "textrel"
> INSANE_SKIP_${PN}-dev = "staticdev"
>
> INHIBIT_PACKAGE_STRIP = "1"
> --
> 2.25.1
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-20 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20 11:01 [PATCH v2] arm/optee-os: deploy tee.elf for u-boot Ross Burton
2021-04-20 11:37 ` [meta-arm] " Ross Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).