mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-04 17:14:07 +00:00
If the value argument to set_ifndef() may be unset, the entire value must be double-quoted to avoid a CMake syntax error. Fix call sites which don't handle this, or which otherwise make non-idiomatic use of this function. Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
18 lines
672 B
CMake
18 lines
672 B
CMake
set_ifndef(GCCARMEMB_TOOLCHAIN_PATH "$ENV{GCCARMEMB_TOOLCHAIN_PATH}")
|
|
set( GCCARMEMB_TOOLCHAIN_PATH ${GCCARMEMB_TOOLCHAIN_PATH} CACHE PATH "gccarmemb install directory")
|
|
assert( GCCARMEMB_TOOLCHAIN_PATH "GCCARMEMB_TOOLCHAIN_PATH is not set")
|
|
|
|
if(NOT EXISTS ${GCCARMEMB_TOOLCHAIN_PATH})
|
|
message(FATAL_ERROR "Nothing found at GCCARMEMB_TOOLCHAIN_PATH: '${GCCARMEMB_TOOLCHAIN_PATH}'")
|
|
endif()
|
|
|
|
set(TOOLCHAIN_HOME ${GCCARMEMB_TOOLCHAIN_PATH})
|
|
|
|
set(COMPILER gcc)
|
|
|
|
set(CROSS_COMPILE_TARGET arm-none-eabi)
|
|
set(SYSROOT_TARGET arm-none-eabi)
|
|
|
|
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/bin/${CROSS_COMPILE_TARGET}-)
|
|
set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})
|