An internal build of openssl is compiled as part of the cst build process, which is later linked statically to the tool. When building the nativesdk version of cst, openssl's internal "Configure" tool chooses Yocto's nativesdk compiler for its compilation (x86_64-deysdk-linux-gcc). However, cst's Makefile uses host tools by default, meaning it will compile its C files with the host's gcc and link the final binary with the host's ld. This can lead to errors due to the Yocto nativesdk compiler including symbols in the openssl libraries that are unknown to the host's linker. For example, when attempting to build nativesdk-trustfence-cst in Yocto 5.0 on Ubuntu 2020.04, the following linker error appears multiple times: undefined reference to `__isoc23_strtol' Fix this by making sure cst uses the same toolchain as the one used when building the internal openssl libraries (and ultimately, when the final binary is linked together). This doesn't affect the native version of cst, which uses the host's toolchain. Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com> |
||
|---|---|---|
| .. | ||
| classes | ||
| conf | ||
| custom-licenses | ||
| dynamic-layers | ||
| recipes-bsp | ||
| recipes-connectivity/nxp-wlan-sdk | ||
| recipes-core | ||
| recipes-digi | ||
| recipes-kernel | ||
| wic | ||
| DIGI_EULA | ||
| DIGI_OPEN_EULA | ||
| README | ||
README
OpenEmbedded/Yocto BSP layer for Digi's ConnectCore platforms ============================================================= This layer provides support for Digi's ConnnecCore platforms for use with OpenEmbedded and/or Yocto. This layer depends on: git://git.yoctoproject.org/poky.git git://git.openembedded.org/meta-openembedded.git git://git.yoctoproject.org/meta-freescale.git Digi's license agreements ------------------------- All software is covered by Digi's general EULA and Digi's Open Source EULA. To have the right to use the software in your images you need to read and accept both EULAs at the DIGI_EULA and DIGI_OPEN_EULA files. NXP Semiconductors' software license agreement ---------------------------------------------- Some platforms depends on libraries and packages that are covered by NXP Semiconductors' EULA. To have the right to use those binaries in your images you need to read and accept the EULA file in meta-freescale Yocto layer. Support ------- This layer is provided 'as is' with no guarantee. However, some support may be available from tech.support@digi.com