-
Notifications
You must be signed in to change notification settings - Fork 26
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 generic cross-compile support #12
Conversation
The `radiosity` and `volrend` benchmarks rely on some libraries. These are now explicitly cleaned with `make clean` as well, since this was causing issues with getting cross-compilation going.
By adding support for a `CROSS_COMPILE` environment variable (similar to what the Linux kernel supports) the benchmarks should be cross-compileable. However, the `volrend` benchmarks relies on `libtiff` which I cannot get to successfully cross-compile. It's been commented out for now.
It might be possible to link with a system version of Regarding support for cross-compilation in general, |
Compiling with the system version of The |
Alright, I guess it makes more sense to have a prefix instead of having to change all the different variables. I am nitpicking, but would it make sense to rename the Regarding |
Yes, I'll remove the |
Based on suggestions by SakalisC, use `TOOLCHAIN_PREFIX` instead of `CROSS_COMPILE` for the prefix for a cross-compiling toolchain. This is clearer and more self-explanatory. The `-static` flag was also removed from `Makefile.config` as it is only relevant when using gem5 or a similar simulator, not for the benchmarks in general.
The `volrend` benchmark was commented out due to cross-compiling issues. These relate to `libtiff` rather than the benchmark and using a cross-compiled version of the library fixes the issue.
Thank you,this should be useful for a lot of people. |
Having previously needed to cross-compile this for use in simulation (but used a native platform for compilation, then copied the files), I have made an attempt at making this cross-compile in general.
There are some problems with getting
volrend
'slibtiff
to cross-compile successfully, and I have been unable to resolve these. Any help would be greatly appreciated!