summaryrefslogtreecommitdiffstats
path: root/classes/imx-boot-container.bbclass
diff options
context:
space:
mode:
authorEmil Kronborg <emil.kronborg@protonmail.com>2025-06-23 18:22:06 +0200
committerEmil Kronborg <emil.kronborg@protonmail.com>2025-06-23 18:22:06 +0200
commit6304f94df2297f8c39a9ed1fa3b24dc53b6176d6 (patch)
treec97a11fbf70a7ca9c06312a9804df54618c56447 /classes/imx-boot-container.bbclass
parentf3969e276d4c4234c5bca0202e1fad20c24ecfa9 (diff)
downloadmeta-freescale-6304f94df2297f8c39a9ed1fa3b24dc53b6176d6.tar.gz
imx-boot-container: copy ${OPTEE_BOOT_IMAGE} to ${B}
After commit commit 015483904c52 ("arm: imx8m: add OP-TEE node") in upstream U-Boot, Binman complains if building imx8mp_evk with CONFIG_OPTEE=y because tee.bin is missing: Image 'image' is missing external blobs and is non-functional: tee-os /binman/section/nxp-imx8mcst@1/fit/images/tee/tee-os (tee.bin): See the documentation for your board. You may need to build Open Portable Trusted Execution Environment (OP-TEE) and build with TEE=/path/to/tee.bin Image 'image' has faked external blobs and is non-functional: tee.bin Some images are invalid make: *** [Makefile:1135: .binman_stamp] Error 103 This commit ensures that ${OPTEE_BOOT_IMAGE}, for example, tee.bin for imx8mp-evk, is copied to the build folder if the optee feature is enabled.
Diffstat (limited to 'classes/imx-boot-container.bbclass')
-rw-r--r--classes/imx-boot-container.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass
index b0d3dc1fb..c3a13a255 100644
--- a/classes/imx-boot-container.bbclass
+++ b/classes/imx-boot-container.bbclass
@@ -63,6 +63,9 @@ do_resolve_and_populate_binaries() {
63 else 63 else
64 bberror "ATF binary is undefined, result binary would be unusable!" 64 bberror "ATF binary is undefined, result binary would be unusable!"
65 fi 65 fi
66 if [ "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '1' , '0' , d)}" = "1" ] ; then
67 cp ${DEPLOY_DIR_IMAGE}/${OPTEE_BOOT_IMAGE} ${B}/${config}/
68 fi
66 fi 69 fi
67 done 70 done
68 unset j 71 unset j