imx-boot: add back LD_LIBRARY_PATH exporting

Submitted by Ming Liu on Oct. 5, 2020, 12:41 p.m. | Patch ID: 176981

Details

Message ID 20201005124151.21253-1-liu.ming50@gmail.com
State New
Headers show

Commit Message

Ming Liu Oct. 5, 2020, 12:41 p.m.
From: Ming Liu <liu.ming50@gmail.com>

It was dropped by commit 65100fad:
[ imx-mkimage: upgrade to version 1.0 ]

after that, the following error was observed again:
| ./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 <liu.ming50@gmail.com>
---
 recipes-bsp/imx-mkimage/imx-boot_1.0.bb | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
index a54b439d..08431b39 100644
--- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
+++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
@@ -126,6 +126,9 @@  compile_mx8x() {
     fi
 }
 do_compile() {
+    # mkimage_uboot requires libssl.so.1.1 from ${STAGING_LIBDIR_NATIVE}
+    export LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE}:$LD_LIBRARY_PATH
+
     # mkimage for i.MX8
     # Copy TEE binary to SoC target folder to mkimage
     if ${DEPLOY_OPTEE}; then

Comments

Otavio Salvador Oct. 5, 2020, 1:43 p.m.
Em seg., 5 de out. de 2020 às 09:41, Ming Liu <liu.ming50@gmail.com> escreveu:
>
> From: Ming Liu <liu.ming50@gmail.com>
>
> It was dropped by commit 65100fad:
> [ imx-mkimage: upgrade to version 1.0 ]
>
> after that, the following error was observed again:
> | ./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 <liu.ming50@gmail.com>

Please open a PR with it.
Ming Liu Oct. 7, 2020, 11:45 a.m.
Hi, Otavio:

https://github.com/Freescale/meta-freescale/pull/515

the best,
thank you

Otavio Salvador <otavio.salvador@ossystems.com.br> 於 2020年10月5日 週一 下午3:43寫道:

> Em seg., 5 de out. de 2020 às 09:41, Ming Liu <liu.ming50@gmail.com>
> escreveu:
> >
> > From: Ming Liu <liu.ming50@gmail.com>
> >
> > It was dropped by commit 65100fad:
> > [ imx-mkimage: upgrade to version 1.0 ]
> >
> > after that, the following error was observed again:
> > | ./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 <liu.ming50@gmail.com>
>
> Please open a PR with it.
>
>
> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#24457): https://lists.yoctoproject.org/g/meta-freescale/message/24457
Mute This Topic: https://lists.yoctoproject.org/mt/77317376/3617530
Group Owner: meta-freescale+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-