mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-13 17:56:00 +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>
15 lines
502 B
CMake
15 lines
502 B
CMake
set_ifndef(ESPRESSIF_TOOLCHAIN_PATH "$ENV{ESPRESSIF_TOOLCHAIN_PATH}")
|
|
set( ESPRESSIF_TOOLCHAIN_PATH ${ESPRESSIF_TOOLCHAIN_PATH} CACHE PATH "")
|
|
assert( ESPRESSIF_TOOLCHAIN_PATH "ESPRESSIF_TOOLCHAIN_PATH is not set")
|
|
|
|
set(TOOLCHAIN_HOME ${ESPRESSIF_TOOLCHAIN_PATH})
|
|
|
|
set(COMPILER gcc)
|
|
|
|
set(CROSS_COMPILE_TARGET xtensa-esp32-elf)
|
|
set(SYSROOT_TARGET xtensa-esp32-elf)
|
|
|
|
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/bin/${CROSS_COMPILE_TARGET}-)
|
|
set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})
|
|
|