2016-07-14 12:34:41 -03:00
|
|
|
include(configs/posix_rpi_common)
|
2016-01-17 12:06:50 -04:00
|
|
|
|
2016-07-19 18:12:09 -03:00
|
|
|
if("$ENV{RPI_USE_CLANG}" STREQUAL "1")
|
2016-08-18 16:37:23 -03:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian-clang.cmake)
|
2016-07-19 18:12:09 -03:00
|
|
|
else()
|
2016-08-18 16:37:23 -03:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian.cmake)
|
2016-07-19 18:12:09 -03:00
|
|
|
endif()
|
|
|
|
|
2016-01-17 13:14:20 -04:00
|
|
|
|
2016-02-29 02:54:31 -04:00
|
|
|
set(CMAKE_PROGRAM_PATH
|
2016-01-17 13:14:20 -04:00
|
|
|
"${RPI_TOOLCHAIN_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian/bin"
|
|
|
|
${CMAKE_PROGRAM_PATH}
|
2016-06-24 14:42:04 -03:00
|
|
|
)
|