[Buildroot] [PATCH v6 03/10] package/newlib-bare-metal: new package

Frager, Neal neal.frager at amd.com
Wed Nov 1 13:23:12 UTC 2023


Hello Thomas,

> Are you sure that the Config.in files can be dropped?  
> 
> When I drop them, I am stuck with the following build error:
> Makefile:576: *** newlib-bare-metal is in the dependency chain of toolchain-bare-metal-buildroot that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in.  Stop.
> 
> How can we deal with this without selecting the packages and having Config.in files?

> Ah, yes, I asked to change the newlib-bare-metal package to be a target package. In this case indeed you do need a Config.in file. However, its option doesn't have to be visible, it should simply be selected by the toolchain-bare-metal-buildroot package.

> config BR2_PACKAGE_NEWLIB_BARE_METAL
> 	bool

Unfortunately, by making newlib a target package instead of host, the buildroot
infrastructure does not seem to like that newlib was built for Xilinx MicroBlaze
and not the expected AArch64 target architecture.

Below is an example of the error message:
ERROR: architecture for "/usr/microblazeel-xilinx-elf/lib/libc.a" is "Xilinx MicroBlaze", should be "AArch64"

Is there a way around this, or do we need to keep newlib-bare-metal as a "host" package
to avoid this issue?z

Best regards,
Neal Frager
AMD



More information about the buildroot mailing list