-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Expose ZEPHYR_TOOLCHAIN_VARIANT to Kconfig to support openisa_rv32m1 #12980
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
Conversation
|
Part of my reasoning for this is this will allow us to build test / regress the vega board and openisa_rv32m1 soc/drivers with the standard Zephyr toolchain (once 0.10.0) is official. |
Codecov Report
@@ Coverage Diff @@
## master #12980 +/- ##
=======================================
Coverage 48.63% 48.63%
=======================================
Files 313 313
Lines 46436 46436
Branches 10710 10710
=======================================
Hits 22585 22585
Misses 19395 19395
Partials 4456 4456Continue to review full report at Codecov.
|
mbolivar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a reasonable thing to do. Users of toolchains with ISA extensions are going to be setting ZEPHYR_TOOLCHAIN_VARIANT to cross-compile in practice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another variant:
config RISCV_GENERIC_TOOLCHAIN
bool
default "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"
Or this:
config RISCV_GENERIC_TOOLCHAIN
def_bool "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"
The value for default, etc., can be any expression.
|
@SebastianBoe can you take a look |
Expose ZEPHYR_TOOLCHAIN_VARIANT so that Kconfig can make choices based on how its set. For example we RISCV_GENERIC_TOOLCHAIN if the variant is 'zephyr'. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
The 0.10 version of the Zephyr toolchain supports building on the openisa_rv32m1 SoC. So if the ZEPHYR_TOOLCHAIN_VARIANT is 'zephyr' than select RISCV_GENERIC_TOOLCHAIN. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
4c7504f to
4caee3f
Compare
SebastianBoe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is broken. You forgot
set(ENV{ZEPHYR_TOOLCHAIN_VARIANT} ${ZEPHYR_TOOLCHAIN_VARIANT})
I think its not needed since its already coming from the env. |
|
Aha, then it is pretty close. But it is valid (and has precedence) to set ZEPHYR_TOOLCHAIN_VARIANT as cmake -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb. |
No description provided.