siemens / kas

Setup tool for bitbake based projects
MIT License
353 stars 144 forks source link

External Compiler/Tool Support #44

Closed mustafagonul closed 3 years ago

mustafagonul commented 3 years ago

Hi,

I am trying to use kas to build yocto and I am experimenting building TI Processor SDK with kas. You clan find related information via the link below:

https://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview_Building_the_SDK.html

For building the SDK, two external compilers are used:

$ wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz
$ tar -Jxvf gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz -C $HOME
$ wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
$ tar -Jxvf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz -C $HOME

and some exports are done:

$ export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf
$ export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu

I did not know how to add into the yaml file, it would be nice if we can support that.

Kind regards, Mustafa

jan-kiszka commented 3 years ago

Two options, I would say:

See also #31 for a similar discussion.

mustafagonul commented 3 years ago

Hi Jan,

While I was discussing the issue with my colleague, I have decided to update the docker and add the necessary stuff into that. Previously I was building the SDK with script inside a docker container (I have also a custom dockerfile.), May be, I can combine these two.

Thanks, Mustafa

henning-schild commented 3 years ago

In fact a simple self-contained thing like that probably best is mounted as volume or layered on top of the central container, no need to "fork" that container