From e933d4b9df470210cbbe331c2a91394ac681b15b Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Wed, 16 Feb 2022 12:38:52 -0600 Subject: optee-os: Use tee-raw.bin binary During the optee-os compilation, the gen_tee_bin.py script generates a tee-raw.bin that is more space efficient and could replace the tee.bin binary manually generated in the optee-os recipe by objcpy. This patch greatly reduces the size of tee.bin. On 64 bits platforms, we observe a size descrease of ~68%, and on 32 bits platforms, a size decrease of ~45%. Signed-off-by: Tom Hochstein --- recipes-security/optee-imx/optee-os_3.15.0.imx.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-security/optee-imx/optee-os_3.15.0.imx.bb b/recipes-security/optee-imx/optee-os_3.15.0.imx.bb index defcf63d..bdc00bc3 100644 --- a/recipes-security/optee-imx/optee-os_3.15.0.imx.bb +++ b/recipes-security/optee-imx/optee-os_3.15.0.imx.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2017-2020 NXP +# Copyright (C) 2017-2021 NXP SUMMARY = "OPTEE OS" DESCRIPTION = "OPTEE OS" @@ -62,7 +62,7 @@ CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}" do_deploy () { install -d ${DEPLOYDIR} - ${TARGET_PREFIX}objcopy -O binary ${B}/core/tee.elf ${DEPLOYDIR}/tee.${PLATFORM_FLAVOR}.bin + cp ${B}/core/tee-raw.bin ${DEPLOYDIR}/tee.${PLATFORM_FLAVOR}.bin ln -sf tee.${PLATFORM_FLAVOR}.bin ${DEPLOYDIR}/tee.bin if [ "${OPTEE_ARCH}" != "arm64" ]; then -- cgit v1.2.3-54-g00ecf