]> code.ossystems Code Review - meta-freescale.git/commit
atf: fix build failure due to optee binary not exist
authorTing Liu <ting.liu@nxp.com>
Fri, 15 May 2020 04:56:41 +0000 (12:56 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 15 May 2020 11:36:56 +0000 (08:36 -0300)
commitf3148122d6883d722c1ce34fc92d7f8908f492f5
treedbb8cd4ae8184d54842c443466d3419689bf2d54
parent17e6370fbe7eb4ace55e45a4c39c0b2ff70968a8
atf: fix build failure due to optee binary not exist

When optee enabled in DISTRO_FEATURES, optee-os-qoriq is added as
DEPENDS, and atf tries to find optee binary under ${DEPLOY_DIR_IMAGE}.
This has issue when do_deploy task of optee-os-qoriq does not run
before atf's do_compile.

Switch to find optee binary under ${RECIPE_SYSROOT} instead of
${DEPLOY_DIR_IMAGE}.

Steps to reproduce the issue:
$ echo 'DISTRO_FEATURES_append = " optee"' >>conf/local.conf
$ bitbake -c cleansstate atf optee-os-qoriq
$ bitbake -c install optee-os-qoriq
$ bitbake -c compile atf
| Building lx2160ardb
| Makefile:633: *** 'BL32=.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin'
| was specified, but '.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin'
| does not exist.  Stop.
| make: *** Waiting for unfinished jobs....

Signed-off-by: Ting Liu <ting.liu@nxp.com>
recipes-bsp/atf/atf_git.bb