mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
cmake remove need for platform px4_add_board_os
- explicitly set TOOLCHAIN on all NuttX targets
This commit is contained in:
committed by
David Sidrane
parent
f22f331e4a
commit
fa0fe4cac6
@@ -3,7 +3,10 @@
|
||||
|
||||
include(px4_git)
|
||||
px4_add_git_submodule(TARGET git_cmake_hexagon PATH "${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon")
|
||||
list(APPEND CMAKE_MODULE_PATH "${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon")
|
||||
list(APPEND CMAKE_MODULE_PATH
|
||||
"${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon"
|
||||
"${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon/toolchain"
|
||||
)
|
||||
|
||||
# Get $QC_SOC_TARGET from environment if existing.
|
||||
if (DEFINED ENV{QC_SOC_TARGET})
|
||||
@@ -32,8 +35,7 @@ px4_add_board(
|
||||
MODEL eagle
|
||||
LABEL default
|
||||
TESTING
|
||||
TOOLCHAIN
|
||||
toolchain/Toolchain-arm-linux-gnueabihf
|
||||
TOOLCHAIN arm-linux-gnueabihf
|
||||
|
||||
DRIVERS
|
||||
#barometer # all available barometer drivers
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
|
||||
include(px4_git)
|
||||
px4_add_git_submodule(TARGET git_cmake_hexagon PATH "${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon")
|
||||
list(APPEND CMAKE_MODULE_PATH "${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon")
|
||||
list(APPEND CMAKE_MODULE_PATH
|
||||
"${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon"
|
||||
"${PX4_SOURCE_DIR}/boards/atlflight/cmake_hexagon/toolchain"
|
||||
)
|
||||
|
||||
# Get $QC_SOC_TARGET from environment if existing.
|
||||
if (DEFINED ENV{QC_SOC_TARGET})
|
||||
@@ -32,8 +35,7 @@ px4_add_board(
|
||||
MODEL excelsior
|
||||
LABEL default
|
||||
TESTING
|
||||
TOOLCHAIN
|
||||
toolchain/Toolchain-arm-oemllib32-linux-gnueabi
|
||||
TOOLCHAIN arm-oemllib32-linux-gnueabi
|
||||
|
||||
DRIVERS
|
||||
#barometer # all available barometer drivers
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
# Excelsior is the code name of a board currently in development.
|
||||
#
|
||||
# This cmake config builds for QURT which is the operating system running on
|
||||
|
||||
Reference in New Issue
Block a user