From 851cb78a9f7fc94574e39a6bf7fe90a21c329f6f Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Sat, 2 May 2020 13:09:17 +0200 Subject: [PATCH] imx-boot: fix mkimage_uboot linking issue 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 --- recipes-bsp/imx-mkimage/imx-boot_0.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-bsp/imx-mkimage/imx-boot_0.2.bb b/recipes-bsp/imx-mkimage/imx-boot_0.2.bb index 0604cec8..0f13a08b 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_0.2.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_0.2.bb @@ -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 -- 2.40.1