Hey guys thanks for the hints,

Ross' suggestion to remove opkg-utils hard coded build dependency on python
solved the issue, but I noticed that there is a similar issue
if PACKAGE_CLASSES = "package_deb" is selected.

wouldn't it be possible to disable in yocto completely package management
e.g PACKAGE_CLASSES = "" ?


Another issue I faced since my target is MMU less is that busybox enforce
shared lib build:

http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/busybox/busybox.inc?h=kirkstone#n115

what is the reason behind this? shouldn't yocto support mmu less target ?






On Thu, May 11, 2023 at 6:19 PM Khem Raj <[email protected]> wrote:

> this is known - see https://github.com/libffi/libffi/issues/267
> someone needs to fix it for thumb-only mode.
>
> On Thu, May 11, 2023 at 6:04 AM Ross Burton <[email protected]> wrote:
> >
> > 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 (#60001): https://lists.yoctoproject.org/g/yocto/message/60001
Mute This Topic: https://lists.yoctoproject.org/mt/98824124/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to