Hello NXP-Team,
I am trying to create a recipe to add se050x libraries to my Yocto image for stm32mp157 but without success.
For that, I have downloaded source from NXP EdgeLock SE05x Plug & Trust Middleware (04.01.01)
I followed the steps mentioned in "Secure_chip/simw-top/doc/building/imx6.html" doc from downloaded source itself. The build is working in my x86 Linux machine. But, when I am trying to build the same source in my STM32MP1 Yocto 32bit platform, I was seeing wrong ELF class while loading the shared library libssl.so.
Can you please provide the recipe or suggest necessary modifications required to work for 32bit platform?
Below are the error logs:
---------------------------------------------------------------------------
ERROR: secure-new-1.0-r0 do_compile: Execution of 'jci-kt-x/stm32mp1/distribution-package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1-eval/tmp-glibc/work/stm32mp1_eval-ostl-linux-gnueabi/secure-new/1.0-r0/temp/run.do_compile.32366' failed with exit code 127:
==============> Compiling secure chip source
INFO:__main__:Preprocessing jci-kt-x/stm32mp1/distribution-package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-jci/recipes-core/secure-new/src/secure-chip/simw-top/ext/open62541/tools/schema/Opc.Ua.NodeSet2.Minimal.xml
INFO:__main__:Generating Code for Backend: open62541
INFO:__main__:NodeSet generation code successfully printed
cmake: error while loading shared libraries: libssl.so.1.1: wrong ELF class: ELFCLASS32
cmake: error while loading shared libraries: libssl.so.1.1: wrong ELF class: ELFCLASS32
cmake: error while loading shared libraries: libssl.so.1.1: wrong ELF class: ELFCLASS32
### Cross compiled for A71CH using SCI2C
#cmake -DHostCrypto=OPENSSL -DApplet=A71CH -DHost=iMXLinux -DCMAKE_BUILD_TYPE=Debug -DSMCOM=SCI2C -DCMAKE_TOOLCHAIN_FILE=jci-kt-x/stm32mp1/distribution-package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-jci/recipes-core/secure-new/src/secure-chip/simw-top/scripts/../scripts/ToolchainFile_imx6.cmake
### Cross compiled for SE05x using T=1 over I2C
#cmake -DHostCrypto=OPENSSL -DApplet=SE05X_C -DHost=iMXLinux -DCMAKE_BUILD_TYPE=Debug -DSMCOM=T1oI2C -DCMAKE_TOOLCHAIN_FILE=jci-kt-x/stm32mp1/distribution-package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-jci/recipes-core/secure-new/src/secure-chip/simw-top/scripts/../scripts/ToolchainFile_imx6.cmake
### JRCP V1 on Linux
#cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DApplet=SE05X_C -DCMAKE_ECLIPSE_VERSION="4.5 (Mars)" -DHost=PCLinux64 -DCMAKE_BUILD_TYPE=Debug -DSMCOM=JRCP_V1 -G "Eclipse CDT4 - Unix Makefiles"
==============> Jumping in build dir imx_cc_se050_t1oi2c
==============> Start building
cmake: error while loading shared libraries: libssl.so.1.1: wrong ELF class: ELFCLASS32
WARNING: exit code 127 from a shell command.
ERROR: Logfile of failure stored in: jci-kt-x/stm32mp1/distribution-package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1-eval/tmp-glibc/work/stm32mp1_eval-ostl-linux-gnueabi/secure-new/1.0-r0/temp/log.do_compile.32366
--------------------------------------------------------------------------------------
Thank You,
Regards,
Shivashankar Thati