cmake: toolchain: print what we find
Print the name of the discovered toolchain as well as the variable used to initialize it. This is nice to know when doing remote support, since users will sometimes misconfigure their toolchain and not know what that means. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
34a59168d5
commit
c5f8e9a84b
8 changed files with 15 additions and 0 deletions
|
@ -27,3 +27,5 @@ assert(CROSS_COMPILE "CROSS_COMPILE is not set")
|
||||||
set(COMPILER gcc)
|
set(COMPILER gcc)
|
||||||
set(LINKER ld)
|
set(LINKER ld)
|
||||||
set(BINTOOLS gnu)
|
set(BINTOOLS gnu)
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: cross-compile (${CROSS_COMPILE})")
|
||||||
|
|
|
@ -18,3 +18,4 @@ set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})
|
||||||
|
|
||||||
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
|
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: espressif (${ESPRESSIF_TOOLCHAIN_PATH})")
|
||||||
|
|
|
@ -28,3 +28,5 @@ set(SYSROOT_TARGET arm-none-eabi)
|
||||||
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/bin/${CROSS_COMPILE_TARGET}-)
|
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/bin/${CROSS_COMPILE_TARGET}-)
|
||||||
set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})
|
set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})
|
||||||
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
|
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: gnuarmemb (${GNUARMEMB_TOOLCHAIN_PATH})")
|
||||||
|
|
|
@ -5,3 +5,5 @@ set(LINKER ld)
|
||||||
set(BINTOOLS host-gnu)
|
set(BINTOOLS host-gnu)
|
||||||
|
|
||||||
set(TOOLCHAIN_HAS_NEWLIB OFF CACHE BOOL "True if toolchain supports newlib")
|
set(TOOLCHAIN_HAS_NEWLIB OFF CACHE BOOL "True if toolchain supports newlib")
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: host (gcc/ld)")
|
||||||
|
|
|
@ -30,3 +30,5 @@ set(CMAKE_CXX_COMPILER_TARGET ${triple})
|
||||||
if("${ARCH}" STREQUAL "posix")
|
if("${ARCH}" STREQUAL "posix")
|
||||||
set(TOOLCHAIN_HAS_NEWLIB OFF CACHE BOOL "True if toolchain supports newlib")
|
set(TOOLCHAIN_HAS_NEWLIB OFF CACHE BOOL "True if toolchain supports newlib")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: host (clang/ld)")
|
||||||
|
|
|
@ -40,3 +40,5 @@ set(NOSYSDEF_CFLAG "")
|
||||||
list(APPEND TOOLCHAIN_C_FLAGS -fms-extensions)
|
list(APPEND TOOLCHAIN_C_FLAGS -fms-extensions)
|
||||||
|
|
||||||
set(TOOLCHAIN_HAS_NEWLIB OFF CACHE BOOL "True if toolchain supports newlib")
|
set(TOOLCHAIN_HAS_NEWLIB OFF CACHE BOOL "True if toolchain supports newlib")
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: xcc (${XTENSA_TOOLCHAIN_PATH})")
|
||||||
|
|
|
@ -36,3 +36,5 @@ set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
|
||||||
|
|
||||||
unset(some_toolchain_root)
|
unset(some_toolchain_root)
|
||||||
unset(some_toolchain)
|
unset(some_toolchain)
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: xtools (${XTOOLS_TOOLCHAIN_PATH})")
|
||||||
|
|
|
@ -7,3 +7,5 @@ endif()
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/${SDK_MAJOR_MINOR}/generic.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/${SDK_MAJOR_MINOR}/generic.cmake)
|
||||||
|
|
||||||
set(TOOLCHAIN_KCONFIG_DIR ${CMAKE_CURRENT_LIST_DIR}/${SDK_MAJOR_MINOR})
|
set(TOOLCHAIN_KCONFIG_DIR ${CMAKE_CURRENT_LIST_DIR}/${SDK_MAJOR_MINOR})
|
||||||
|
|
||||||
|
message(STATUS "Found toolchain: zephyr (${ZEPHYR_SDK_INSTALL_DIR})")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue