build 2 sdk toolchain


Johann Obermayr
 

Hello,

 

we use kirkstone.

We will build

  1. Image
  2. Toolchain for linux
  3. Toolchain for windows

 

Now we can build a image + linux sdk toolchain.

That work correct.

 

$ bitbake my-image

$ bitbake my-image -c populate_sdk

 

Now we will build a Toolchain for windows

We have add meta-mingw

 

$ SDKMACHINE=x86_64-mingw” bitbake my-image -c populate_sdk

 

Is this the correct way ?

Or what is a better solution for this.

 

Best regards

  Johann


Alexander Kanavin
 

This is the correct way, yes. You can put SDKMACHINE into local.conf
(default is 'linux sdk'), or you can specify it on command line (in
which case it will override the local.conf setting).

Alex

On Tue, 15 Nov 2022 at 13:02, Johann Obermayr via
lists.yoctoproject.org
<johann.obermayr=sigmatek.at@...> wrote:


Hello,



we use kirkstone.

We will build

Image
Toolchain for linux
Toolchain for windows



Now we can build a image + linux sdk toolchain.

That work correct.



$ bitbake my-image

$ bitbake my-image -c populate_sdk



Now we will build a Toolchain for windows

We have add meta-mingw



$ SDKMACHINE=x86_64-mingw” bitbake my-image -c populate_sdk



Is this the correct way ?

Or what is a better solution for this.



Best regards

Johann




Johann Obermayr
 

Hello,

build mingw sdk get follow error:

configure: error: linux/capability.h is required in order to build libcap-ng

$ SDKMACHINE=x86_64-mingw” bitbake my-image -c populate_sdk

We use kernel 5.15
Any idea ?

Best regards
Johann

-----Ursprüngliche Nachricht-----
Von: Alexander Kanavin <alex.kanavin@...>
Gesendet: Dienstag, 15. November 2022 13:06
An: Johann Obermayr <johann.obermayr@...>
Cc: yocto@...
Betreff: Re: [yocto] build 2 sdk toolchain

CAUTION: External E-Mail !

This is the correct way, yes. You can put SDKMACHINE into local.conf (default
is 'linux sdk'), or you can specify it on command line (in which case it will
override the local.conf setting).

Alex

On Tue, 15 Nov 2022 at 13:02, Johann Obermayr via lists.yoctoproject.org
<johann.obermayr=sigmatek.at@...> wrote:

Hello,



we use kirkstone.

We will build

Image
Toolchain for linux
Toolchain for windows



Now we can build a image + linux sdk toolchain.

That work correct.



$ bitbake my-image

$ bitbake my-image -c populate_sdk



Now we will build a Toolchain for windows

We have add meta-mingw



$ SDKMACHINE=x86_64-mingw” bitbake my-image -c populate_sdk



Is this the correct way ?

Or what is a better solution for this.



Best regards

Johann