mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
posix_rpi_cross_no_shield.cmake: move -D__DF_RPI_SINGLE from commons to this file
This commit is contained in:
@@ -2,12 +2,17 @@
|
|||||||
# use this file to cross compile px4 for raspberry pi without any shield
|
# use this file to cross compile px4 for raspberry pi without any shield
|
||||||
include(configs/posix_rpi_common)
|
include(configs/posix_rpi_common)
|
||||||
|
|
||||||
|
add_definitions(
|
||||||
|
-D__DF_RPI_SINGLE # For raspberry pi without shield accessory
|
||||||
|
)
|
||||||
|
|
||||||
if("$ENV{RPI_USE_CLANG}" STREQUAL "1")
|
if("$ENV{RPI_USE_CLANG}" STREQUAL "1")
|
||||||
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian-clang.cmake)
|
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian-clang.cmake)
|
||||||
else()
|
else()
|
||||||
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian.cmake)
|
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_PROGRAM_PATH
|
set(CMAKE_PROGRAM_PATH
|
||||||
"${RPI_TOOLCHAIN_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian/bin"
|
"${RPI_TOOLCHAIN_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian/bin"
|
||||||
${CMAKE_PROGRAM_PATH}
|
${CMAKE_PROGRAM_PATH}
|
||||||
|
|||||||
Reference in New Issue
Block a user