forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: add support for 0.10.1 and remove 0.9.5
Add support for Zephyr SDK 0.10.1 and remove old 0.9.5 which does not work with the master tree. Signed-off-by: Anas Nashif <[email protected]>
- Loading branch information
Showing
4 changed files
with
36 additions
and
40 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
cmake/toolchain/zephyr/0.9.5/generic.cmake → cmake/toolchain/zephyr/0.10.1/generic.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set(TOOLCHAIN_HOME ${ZEPHYR_SDK_INSTALL_DIR}) | ||
|
||
set(COMPILER gcc) | ||
set(LINKER ld) | ||
|
||
set(CROSS_COMPILE_TARGET i586-${TOOLCHAIN_VENDOR}-elf) | ||
set(SYSROOT_TARGET i586-${TOOLCHAIN_VENDOR}-elf) | ||
|
||
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/usr/bin/${CROSS_COMPILE_TARGET}/${CROSS_COMPILE_TARGET}-) | ||
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/${CROSS_COMPILE_TARGET}/bin/${CROSS_COMPILE_TARGET}-) | ||
set(SYSROOT_DIR ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/${SYSROOT_TARGET}/usr) | ||
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib") |
6 changes: 1 addition & 5 deletions
6
...e/toolchain/zephyr/0.9.5/host-tools.cmake → .../toolchain/zephyr/0.10.1/host-tools.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Determine if we have an IAMCU toolchain or not. | ||
if(CONFIG_X86_IAMCU) | ||
set(CROSS_COMPILE_TARGET_x86 i586-zephyr-elfiamcu) | ||
else() | ||
set(CROSS_COMPILE_TARGET_x86 i586-zephyr-elf) | ||
endif() | ||
|
||
set(CROSS_COMPILE_TARGET_arm arm-zephyr-eabi) | ||
set(CROSS_COMPILE_TARGET_nios2 nios2-zephyr-elf) | ||
set(CROSS_COMPILE_TARGET_riscv32 riscv32-zephyr-elf) | ||
set(CROSS_COMPILE_TARGET_mips mipsel-zephyr-elf) | ||
set(CROSS_COMPILE_TARGET_xtensa xtensa-zephyr-elf) | ||
set(CROSS_COMPILE_TARGET_arc arc-zephyr-elf) | ||
|
||
set(CROSS_COMPILE_TARGET ${CROSS_COMPILE_TARGET_${ARCH}}) | ||
set(SYSROOT_TARGET ${CROSS_COMPILE_TARGET}) | ||
|
||
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/${CROSS_COMPILE_TARGET}/bin/${CROSS_COMPILE_TARGET}-) | ||
|
||
if("${ARCH}" STREQUAL "xtensa") | ||
set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET}) | ||
set(TOOLCHAIN_INCLUDES | ||
${SYSROOT_DIR}/include/arch/include | ||
${SYSROOT_DIR}/include | ||
) | ||
|
||
LIST(APPEND TOOLCHAIN_LIBS hal) | ||
LIST(APPEND LIB_INCLUDE_DIR -L${SYSROOT_DIR}/lib) | ||
endif() | ||
set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET}/${SYSROOT_TARGET}) |
This file was deleted.
Oops, something went wrong.