]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-boot: fix mkimage_uboot linking issue
authorMing Liu <ming.liu@toradex.com>
Sat, 2 May 2020 11:09:17 +0000 (13:09 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 5 May 2020 11:42:38 +0000 (08:42 -0300)
In imx-boot's Makefile, it downloads a native tool mkimage_uboot and
executes it, but this native tool requires libssl.so.1.1, which is in
${STAGING_LIBDIR_NATIVE}, we need set LD_LIBRARY_PATH to include it, or
it might run into following errors:
| ./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot.itb
| ./mkimage_uboot: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Signed-off-by: Ming Liu <ming.liu@toradex.com>
recipes-bsp/imx-mkimage/imx-boot_0.2.bb

index 0604cec82846710798ad6c54ef59e8eb8f4c094f..0f13a08bb39d25b80fa57b84307021ea05c3dcea 100644 (file)
@@ -105,6 +105,8 @@ compile_mx8x() {
     cp ${DEPLOY_DIR_IMAGE}/${UBOOT_NAME}                     ${BOOT_STAGING}/u-boot.bin
 }
 do_compile() {
+    # mkimage_uboot requires libssl.so.1.1 from ${STAGING_LIBDIR_NATIVE}
+    export LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE}:$LD_LIBRARY_PATH
     compile_${SOC_FAMILY}
     # mkimage for i.MX8
     if ${DEPLOY_OPTEE}; then