On 11 May 2023, at 10:37, Ayoub Zaki via lists.yoctoproject.org <[email protected]> wrote: > I'm trying to build a simple yocto (Kirkstone) initramfs image containing > only busybox for a STM32Fx cortex M7 based MCU: > > https://www.st.com/en/microcontrollers-microprocessors/stm32f7-series.html > > U-boot and Kernel are building and running fine so far. > > The initramfs image Build breaks at openssl/libffi package which I DIDN'T > enable and not required in my image. Probably Build dependencies for some > other packages:
It is required, as it’s being built. This may not be intentional so you should definitely have a look at what you’re putting into your initramfs, and if there are any optional dependencies you can remove. > Is this problem known ? Any suggestions on how to fix this? > 2023-05-11 11:25:31 - INFO - MACHINE = "stm32f769-disco" Is this a custom machine? Can you share it? > 2023-05-11 11:25:34 - INFO - | ../libffi-3.4.4/src/arm/sysv.S:104: Error: > selected processor does not support ARM opcodes The M7 doesn’t support ARM opcodes, so if you need libffi then you’ll need to port it. Hopefully you don’t actually need libffi if you build less into your initramfs. > 2023-05-11 11:25:36 - INFO - | > /workspace/meta-stm32f7x/build/tmp/work/cortexm7-poky-linux-musleabi/openssl/3.0.8-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-musleabi/../../libexec/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/11.3.0/ld/workspace/meta-stm32f7x/build/tmp/work/cortexm7-poky-linux-musleabi/openssl/3.0.8-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-musleabi/../../libexec/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/11.3.0/ld: > error: libcrypto.a(libcrypto-lib-armv4-gf2m.o): conflicting architecture > profiles A/M For some reason openssl is trying to link A and M code together, which isn’t right. Hopefully you can also remove OpenSSL from your image. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59987): https://lists.yoctoproject.org/g/yocto/message/59987 Mute This Topic: https://lists.yoctoproject.org/mt/98824124/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
