Commit df2145e
committed
cmake: Parse ZEPHYR_TOOLCHAIN_VARIANT in SDK instead of Zephyr
When ZEPHYR_TOOLCHAIN_VARIANT is of the form toolchain/compiler, it
needs to be split into the toolchain (which overwrites
ZEPHYR_TOOLCHAIN_VARIANT) and compiler (stored in
TOOLCHAIN_VARIANT_COMPILER).
Otherwise, when defined, it is left alone. When undefined it is set to
"zephyr".
Finally, if the value is "zephyr" and no TOOLCHAIN_VARIANT_COMPILER
setting is present, then TOOLCHAIN_VARIANT_COMPILER is set to "gnu".
This allows existing configurations which set ZEPHYR_TOOLCHAIN_VARIANT
to "zephyr" to work with the new SDK and allows Zephyr to easily
support both old and new variable settings during the SDK transition
period.
Finally, write both values into the environment so that Kconfig can
use them.
Signed-off-by: Keith Packard <[email protected]>1 parent d0665e2 commit df2145e
3 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
19 | 35 | | |
20 | 36 | | |
21 | 37 | | |
- newlib/libc/tinystdio/dtoa.h+6-6
- newlib/libc/tinystdio/dtoa_engine.c+2-3
- newlib/libc/tinystdio/dtoa_ryu.c+1-2
- newlib/libc/tinystdio/dtox_engine.c+4-7
- newlib/libc/tinystdio/ecvt_r.c+1-1
- newlib/libc/tinystdio/ecvtf_r.c+1-1
- newlib/libc/tinystdio/fcvt_r.c+1-1
- newlib/libc/tinystdio/fcvtf_r.c+1-1
- newlib/libc/tinystdio/ftoa_engine.c+4-11
- newlib/libc/tinystdio/ftoa_ryu.c+1-4
- newlib/libc/tinystdio/vfprintf.c+3-3
- newlib/libm/test/test.c+12-2
- scripts/cross-clang-aarch64-none-elf-fvp.txt+1-1
- scripts/cross-clang-aarch64-none-elf.txt+1-1
0 commit comments