Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Compiler/Tool Support #44

Closed
mustafagonul opened this issue Feb 16, 2021 · 3 comments
Closed

External Compiler/Tool Support #44

mustafagonul opened this issue Feb 16, 2021 · 3 comments

Comments

@mustafagonul
Copy link

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
Copy link
Collaborator

Two options, I would say:

  • derive your own kas container that has those binaries pre-installed, like we installed the debian toolchain
  • model fetching and installation as bitbake target and let the SDK recipes depend on it (if that it possible, never done that myself)

See also #31 for a similar discussion.

@mustafagonul
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants