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

Add possibility to add project specific toolchains #139

Open
ReneW10 opened this issue Mar 22, 2017 · 2 comments
Open

Add possibility to add project specific toolchains #139

ReneW10 opened this issue Mar 22, 2017 · 2 comments

Comments

@ReneW10
Copy link

ReneW10 commented Mar 22, 2017

Let's say there is a project with a specific toolchain.
Can it be added to bake by adding a path to toolchain description via command line?

E.g. the toolchain description is located under C:\projs\myProj\etc\bake\ with toolchain and error parser description specificToolchain.rb and specificToolchainErrorParser.rb.
And
bake --add-toolchains C:\projs\myProj\etc\bake\ --toolchain-names
would list the normal toolchains, plus the specificToolchain.

@aschaal
Copy link
Contributor

aschaal commented Mar 24, 2017

Thank you for the idea. I would like to do that, but that is not easy.
Adding the compiler flags + error parser is one thing, but every compiler front-end has different handling, e.g. how to generate dependency files, pointing to the linker script(s), etc. So maybe I have to provide a more generic mechanism how to call the compiler/archiver/linker.
I leave this ticket open as a reminder to think about it more deeply in future.

Until this is done, feel free to send me your new compiler (settings). You could simply try them out by changing the bake-toolkit ruby code (where ruby is installed). You could manipulate an exisiting compiler to reduce the effort. Example for gcc if you have Windows and ruby 2.0.0 installed at C:\tools\ruby200 with bake-toolkit 2.34.4:

C:\tools\ruby200\lib\ruby\gems\2.0.0\gems\bake-toolkit-2.34.4\lib\bake\toolchain\XY.rb
C:\tools\ruby200\lib\ruby\gems\2.0.0\gems\bake-toolkit-2.34.4\lib\bake\toolchain\errorparser\XY_compiler_error_parser.rb
C:\tools\ruby200\lib\ruby\gems\2.0.0\gems\bake-toolkit-2.34.4\lib\bake\toolchain\errorparser\XY_linker_error_parser.rb

@hartigdan
Copy link

Any news on this? We're in a situation where this would be quite handy, since we don't want to change the global bake installation on Jenkins.

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