blob: 7f0dee3c7bb602eb91a8b8c4fb56f0755891d304 [file] [log] [blame]
Sebastian Bøe12f8f762017-10-27 15:43:34 +02001set_ifndef(GCCARMEMB_TOOLCHAIN_PATH $ENV{GCCARMEMB_TOOLCHAIN_PATH})
2set( GCCARMEMB_TOOLCHAIN_PATH ${GCCARMEMB_TOOLCHAIN_PATH} CACHE PATH "gccarmemb install directory")
3assert( GCCARMEMB_TOOLCHAIN_PATH "GCCARMEMB_TOOLCHAIN_PATH is not set")
4
5if(NOT EXISTS ${GCCARMEMB_TOOLCHAIN_PATH})
6 message(FATAL_ERROR "Nothing found at GCCARMEMB_TOOLCHAIN_PATH: '${GCCARMEMB_TOOLCHAIN_PATH}'")
7endif()
8
9set(TOOLCHAIN_HOME ${GCCARMEMB_TOOLCHAIN_PATH})
10
11set(COMPILER gcc)
12
13set(CROSS_COMPILE_TARGET arm-none-eabi)
14set(SYSROOT_TARGET arm-none-eabi)
15
16set(CROSS_COMPILE ${TOOLCHAIN_HOME}/bin/${CROSS_COMPILE_TARGET}-)
17set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})