> >
> >
> > 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?

Cheers,
Renaud
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to