optee-os: move resulting bins from out/ directory, as it's removed between builds
PATCH 1/1 optee-os: move resulting bins from out/ directory, as it's removed between builds
Signed-off-by Denys Dmytriyenko <[email protected]>
--- .../optee/optee-os_git.bbappend | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
meta-arago-distro/recipes-security/optee/optee-os_git.bbappend +10 -10
@@ -40,7 +40,7 @@ do_compile() { ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` - mv tee.bin.signed $normfl.optee; \ + mv tee.bin.signed ${B}/$normfl.optee; \ ) if [ "${OPTEEPAGER}" = "y" ]; then
@@ -50,7 +50,7 @@ do_compile() { ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` - mv tee.bin.signed $normfl-pager.optee; \ + mv tee.bin.signed ${B}/$normfl-pager.optee; \ ) fi }
@@ -58,17 +58,17 @@ do_compile() { do_compile_aarch64() { oe_runmake all PLATFORM=${OPTEEMACHINE} PLATFORM_FLAVOR=${OPTEEFLAVOR} ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ - cp tee-pager.bin bl32.bin; \ - cp tee.elf bl32.elf; \ + cp tee-pager.bin ${B}/bl32.bin; \ + cp tee.elf ${B}/bl32.elf; \ ) } do_install() { #install core on boot directory install -d ${D}/boot - install -m 644 ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/core/*.optee ${D}/boot || true - install -m 644 ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/core/bl32.bin ${D}/boot || true - install -m 644 ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/core/bl32.elf ${D}/boot || true + install -m 644 ${B}/*.optee ${D}/boot || true + install -m 644 ${B}/bl32.bin ${D}/boot || true + install -m 644 ${B}/bl32.elf ${D}/boot || true #install TA devkit install -d ${D}/usr/include/optee/export-user_ta/
@@ -79,9 +79,9 @@ do_install() { do_deploy() { install -d ${DEPLOYDIR} - install -m 644 ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/core/*.optee ${DEPLOYDIR} || true - install -m 644 ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/core/bl32.bin ${DEPLOYDIR} || true - install -m 644 ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/core/bl32.elf ${DEPLOYDIR} || true + install -m 644 ${B}/*.optee ${DEPLOYDIR} || true + install -m 644 ${B}/bl32.bin ${DEPLOYDIR} || true + install -m 644 ${B}/bl32.elf ${DEPLOYDIR} || true } FILES_${PN} = "/boot"
Signature · 1 line
2.17.1