[yocto] Native yocto compile in docker container without cross compile

Burton, Ross ross.burton at intel.com
Wed Sep 19 10:21:34 PDT 2018


If you're targeting just x86 then you can build an image with the
tools-sdk IMAGE_FEATURE defined, and use something like systemd-nspawn
(insert your preferred container system) to get a shell in it.

Ross
On Wed, 19 Sep 2018 at 18:14, Fabian Sturm <f at rtfs.org> wrote:
>
> Hi,
>
> no this is not what I am searching for. What I want is gcc cmake and
> other tools to be installed inside of the Yocto image, so that I can
> compile natively in Yocto without having to hack build scripts to work
> with a cross compiler.
> But of course I don'T want to deliver gcc and others with the image on
> a device. One solution would be to build a separate image that contains
> the tools. But my hope is to use the original image and just add those
> tools later on.
>
> Any ideas how to set something like this up best?
>
> Kind regrads,
> Fabian
>
> Am Mittwoch, den 19.09.2018, 10:07 +0200 schrieb Alexander Kanavin:
> > I think what you are looking for is a Yocto generated SDK for your
> > image?
> >
> > bitbake -c populate_sdk <image>
> >
> > Alex
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list