bareboxenv-target
Roland Hieber
rhi at pengutronix.de
Fri Nov 6 07:31:06 EST 2020
On Fri, Nov 06, 2020 at 12:06:08PM +0000, Barbier, Renaud wrote:
> > >
> > >
> > > It looks like sysroot is missing as when I add to scripts/Makefile:
> > > ifdef SDKTARGETSYSROOT
> > > userccflags += --sysroot=$(SDKTARGETSYSROOT)
> > > endif
> > >
> > > It builds.
> > >
> > > Not much came out from search on google but one thread that refers to
> > this problem when building with Yocto.
>
> In barebox.inc of the Yocto recipe, I replaced
> export TARGETCFLAGS="${TARGET_LDFLAGS}${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
> with
> export userccflags="${TARGET_LDFLAGS}${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
>
> It builds.
>
> Would that be the way to pass sysroot to scripts/Makefile?
I think someone more knowledgeable about Yocto/OE needs to answer this,
I don't know if anyone is here…
- Roland
--
Roland Hieber, Pengutronix e.K. | r.hieber at pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list