mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 02:20:30 +00:00
optee: update optee-os.inc to support external TAs
Separate recipe for TA devkit is needed to solve circular dependency to build TAs with the devkit and integrate it inside optee-os. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -5,7 +5,7 @@ HOMEPAGE = "https://github.com/linaro-swg/optee_examples"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=cd95ab417e23b94f381dafc453d70c30"
|
||||
|
||||
DEPENDS = "optee-client optee-os python3-pycryptodome-native"
|
||||
DEPENDS = "optee-client optee-os-tadevkit python3-pycryptodome-native"
|
||||
|
||||
inherit python3native
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os:"
|
||||
require optee-os_3.14.0.bb
|
||||
|
||||
SUMMARY = "OP-TEE Trusted OS TA devkit"
|
||||
DESCRIPTION = "OP-TEE TA devkit for build TAs"
|
||||
HOMEPAGE = "https://www.op-tee.org/"
|
||||
|
||||
do_install() {
|
||||
#install TA devkit
|
||||
install -d ${D}${includedir}/optee/export-user_ta/
|
||||
for f in ${B}/export-ta_${OPTEE_ARCH}/* ; do
|
||||
cp -aR $f ${D}${includedir}/optee/export-user_ta/
|
||||
done
|
||||
}
|
||||
|
||||
do_deploy() {
|
||||
echo "Do not inherit do_deploy from optee-os."
|
||||
}
|
||||
|
||||
FILES:${PN} = "${includedir}/optee/"
|
||||
@@ -46,12 +46,6 @@ do_install() {
|
||||
#install core in firmware
|
||||
install -d ${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/
|
||||
for f in ${B}/export-ta_${OPTEE_ARCH}/* ; do
|
||||
cp -aR $f ${D}${includedir}/optee/export-user_ta/
|
||||
done
|
||||
}
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
@@ -66,7 +60,6 @@ addtask deploy before do_build after do_install
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user