cmake: toolchain: Minor refactoring
Fixed whitespace such that 'XTOOLS_TOOLCHAIN_PATH' is vertically aligned. Also, combined two cmake invocations of 'list' into one. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
e9a49047a0
commit
87858fd4e2
2 changed files with 6 additions and 4 deletions
|
|
@ -71,8 +71,10 @@ endforeach()
|
|||
|
||||
if("${ZEPHYR_TOOLCHAIN_VARIANT}" STREQUAL "xcc")
|
||||
|
||||
LIST(APPEND TOOLCHAIN_LIBS gcc)
|
||||
LIST(APPEND TOOLCHAIN_LIBS hal)
|
||||
list(APPEND TOOLCHAIN_LIBS
|
||||
gcc
|
||||
hal
|
||||
)
|
||||
|
||||
else()
|
||||
include(${ZEPHYR_BASE}/cmake/gcc-m-cpu.cmake)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
set_ifndef(XTOOLS_TOOLCHAIN_PATH "$ENV{XTOOLS_TOOLCHAIN_PATH}")
|
||||
set( XTOOLS_TOOLCHAIN_PATH ${XTOOLS_TOOLCHAIN_PATH} CACHE PATH "")
|
||||
assert( XTOOLS_TOOLCHAIN_PATH "XTOOLS_TOOLCHAIN_PATH is not set")
|
||||
set( XTOOLS_TOOLCHAIN_PATH ${XTOOLS_TOOLCHAIN_PATH} CACHE PATH "")
|
||||
assert( XTOOLS_TOOLCHAIN_PATH "XTOOLS_TOOLCHAIN_PATH is not set")
|
||||
|
||||
set(TOOLCHAIN_HOME ${XTOOLS_TOOLCHAIN_PATH})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue