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

autodetect toolchain prefix using priority lists #2

Open
wucke13 opened this issue Sep 18, 2023 · 1 comment
Open

autodetect toolchain prefix using priority lists #2

wucke13 opened this issue Sep 18, 2023 · 1 comment
Assignees

Comments

@wucke13
Copy link

wucke13 commented Sep 18, 2023

Depending on the distro, arm gcc may have many names:

  • arm-none-eabi-gcc
  • arm-none-eabihf-gcc
  • arm-linux-gnueabi
  • arm-unknown-linux-gnueabi
  • ... ?

We should be smart about which one we assume, instead of hardcoding one of them. It can then be passed to the cmake using -DCROSS_COMPILER_PREFIX=arm-none-eabihf- for example. As a last resort, using #1 the downstream consumer can override it.

@moritz-meier
Copy link
Member

Update: sel4-sys should map its current cargo target to a list of acceptable, equivalent gcc cross-compilers, then look which of them is available and use that; otherwise fail with a helpful error message. sel4 and sel4-sys, sel4-rs and the rootserver application should in the end all be compiled to the same target or with related targets.

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

2 participants