1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-06-05 14:30:10 +00:00

arm/optee-os: Fix build race condition when building fTPM

Change ftpm to install embeddable (stripped) version to sysroot.  When
building optee-os pick up from sysroot instead of DEPLOY_DIR_IMAGE.
This fixes a build race condition where DEPENDS was only waiting for
optee-ftpm:do_populate_sysroot instead of do_deploy.

Signed-off-by: Ryan Fairfax <rfairfax@microsoft.com>
This commit is contained in:
Ryan Fairfax
2022-01-14 11:09:05 -08:00
committed by Jon Mason
parent 63cb70be72
commit 940b9afdde
2 changed files with 6 additions and 2 deletions
@@ -60,6 +60,7 @@ do_compile() {
do_install () {
mkdir -p ${D}/lib/optee_armtz
install -D -p -m 0644 ${S}/TAs/optee_ta/out/fTPM/${FTPM_UUID}.ta ${D}/lib/optee_armtz/
install -D -p -m 0644 ${S}/TAs/optee_ta/out/fTPM/${FTPM_UUID}.stripped.elf ${D}/lib/optee_armtz/
}
do_deploy () {
@@ -69,7 +70,10 @@ do_deploy () {
addtask deploy before do_build after do_install
FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/${FTPM_UUID}.ta"
FILES:${PN} += " \
${nonarch_base_libdir}/optee_armtz/${FTPM_UUID}.ta \
${nonarch_base_libdir}/optee_armtz/${FTPM_UUID}.stripped.elf \
"
# Imports machine specific configs from staging to build
PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -9,6 +9,6 @@ DEPENDS:append = "\
EXTRA_OEMAKE:append = "${@bb.utils.contains('MACHINE_FEATURES', \
'optee-ftpm', \
'CFG_EARLY_TA=y EARLY_TA_PATHS="${DEPLOY_DIR_IMAGE}/optee/${FTPM_UUID}.stripped.elf"', \
'CFG_EARLY_TA=y EARLY_TA_PATHS="${STAGING_DIR_TARGET}/lib/optee_armtz/${FTPM_UUID}.stripped.elf"', \
'', \
d)} "