bareboxenv-target

Barbier, Renaud renaud.barbier at abaco.com
Fri Nov 6 07:06:08 EST 2020


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


More information about the barebox mailing list