diff options
author | Denys Dmytriyenko <denys@ti.com> | 2020-10-22 03:55:08 +0000 |
---|---|---|
committer | Dan Murphy <dmurphy@ti.com> | 2020-10-22 07:26:11 -0500 |
commit | d7ab6fb6e14a8f700f834d5e63953221fd7665ed (patch) | |
tree | 89192678e4794aec477b5a4999bb45e9c27212d2 | |
parent | 8b2c97b585ed3f4163fa29f0d9120c7cd3c9e173 (diff) | |
download | meta-ti-d7ab6fb6e14a8f700f834d5e63953221fd7665ed.tar.gz |
optee-os: adjust for out-of-tree builds in meta-arm/master
As meta-arm/master now builds optee out of tree, hence use ${B} instead of
out/arm-plat-${OPTEEOUTPUTMACHINE}
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
-rw-r--r-- | recipes-security/optee/optee-os_%.bbappend | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend index 2846d0ad..d7e81c5a 100644 --- a/recipes-security/optee/optee-os_%.bbappend +++ b/recipes-security/optee/optee-os_%.bbappend | |||
@@ -3,7 +3,7 @@ do_compile_prepend_ti-soc() { | |||
3 | } | 3 | } |
4 | 4 | ||
5 | do_compile_append_k3() { | 5 | do_compile_append_k3() { |
6 | ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ | 6 | ( cd ${B}/core/; \ |
7 | cp tee-pager_v2.bin ${B}/bl32.bin; \ | 7 | cp tee-pager_v2.bin ${B}/bl32.bin; \ |
8 | cp tee.elf ${B}/bl32.elf; \ | 8 | cp tee.elf ${B}/bl32.elf; \ |
9 | ) | 9 | ) |
@@ -11,16 +11,16 @@ do_compile_append_k3() { | |||
11 | 11 | ||
12 | # Signing procedure for legacy HS devices | 12 | # Signing procedure for legacy HS devices |
13 | optee_sign_legacyhs() { | 13 | optee_sign_legacyhs() { |
14 | ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ | 14 | ( cd ${B}/core/; \ |
15 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ | 15 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ |
16 | normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` | 16 | normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` |
17 | mv tee.bin.signed ${B}/$normfl.optee; \ | 17 | mv tee.bin.signed ${B}/$normfl.optee; \ |
18 | ) | 18 | ) |
19 | 19 | ||
20 | if [ "${OPTEEPAGER}" = "y" ]; then | 20 | if [ "${OPTEEPAGER}" = "y" ]; then |
21 | rm -rf out/ | 21 | oe_runmake clean |
22 | oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 CFG_WITH_PAGER=y | 22 | oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 CFG_WITH_PAGER=y |
23 | ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ | 23 | ( cd ${B}/core/; \ |
24 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ | 24 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ |
25 | normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` | 25 | normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` |
26 | mv tee.bin.signed ${B}/$normfl-pager.optee; \ | 26 | mv tee.bin.signed ${B}/$normfl-pager.optee; \ |
@@ -30,7 +30,7 @@ optee_sign_legacyhs() { | |||
30 | 30 | ||
31 | # Signing procedure for K3 HS devices | 31 | # Signing procedure for K3 HS devices |
32 | optee_sign_k3hs() { | 32 | optee_sign_k3hs() { |
33 | ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ | 33 | ( cd ${B}/core/; \ |
34 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee-pager_v2.bin tee-pager.bin.signed; \ | 34 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee-pager_v2.bin tee-pager.bin.signed; \ |
35 | mv tee-pager.bin.signed ${B}/bl32.bin; \ | 35 | mv tee-pager.bin.signed ${B}/bl32.bin; \ |
36 | cp tee.elf ${B}/bl32.elf; \ | 36 | cp tee.elf ${B}/bl32.elf; \ |