mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 14:30:10 +00:00
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 <yann@blade-group.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -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,8 @@ SYSROOT_DIRS += "${nonarch_base_libdir}/firmware"
|
||||
FILES_${PN} = "${nonarch_base_libdir}/firmware/"
|
||||
FILES_${PN}-dev = "${includedir}/optee/"
|
||||
|
||||
# note: "textrel" is not triggered on all archs
|
||||
INSANE_SKIP_${PN} = "textrel"
|
||||
INSANE_SKIP_${PN}-dev = "staticdev"
|
||||
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
Reference in New Issue
Block a user