mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 12:31:36 +08:00
boards new split VENDOR_MODEL naming convention
This commit is contained in:
committed by
David Sidrane
parent
f692ad04d0
commit
abb3817d31
@@ -21,7 +21,7 @@ px4_posix_generate_alias(
|
||||
PREFIX ${PX4_SHELL_COMMAND_PREFIX}
|
||||
)
|
||||
|
||||
if (("${PX4_BOARD}" STREQUAL "atlflighteagle") OR ("${PX4_BOARD}" STREQUAL "atlflightexcelsior"))
|
||||
if (("${PX4_BOARD}" STREQUAL "atlflight_eagle") OR ("${PX4_BOARD}" STREQUAL "atlflight_excelsior"))
|
||||
include(fastrpc)
|
||||
include(linux_app)
|
||||
|
||||
@@ -109,7 +109,7 @@ if (("${PX4_BOARD}" MATCHES "raspberrypi") OR ("${PX4_BOARD}" MATCHES "navio2"))
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
elseif ("${PX4_BOARD}" MATCHES "bbblue")
|
||||
elseif ("${PX4_BOARD}" MATCHES "beaglebone_blue")
|
||||
target_link_libraries(px4 PRIVATE robotcontrol)
|
||||
|
||||
add_custom_target(upload
|
||||
@@ -178,9 +178,9 @@ elseif ("${PX4_BOARD}" MATCHES "sitl")
|
||||
# sitl_gazebo built plugins
|
||||
install(
|
||||
DIRECTORY
|
||||
${PROJECT_SOURCE_DIR}/build/px4sitl_default/build_gazebo
|
||||
${PROJECT_SOURCE_DIR}/build/px4_sitl_default/build_gazebo
|
||||
DESTINATION
|
||||
${PROJECT_NAME}/build/px4sitl_default
|
||||
${PROJECT_NAME}/build/px4_sitl_default
|
||||
FILES_MATCHING
|
||||
PATTERN "CMakeFiles" EXCLUDE
|
||||
PATTERN "*.so"
|
||||
|
||||
@@ -62,7 +62,7 @@ include(px4_base)
|
||||
#
|
||||
# Example:
|
||||
# px4_add_board_os(
|
||||
# BOARD px4fmu-v2_default
|
||||
# BOARD px4_fmu-v2_default
|
||||
# OS nuttx
|
||||
# )
|
||||
#
|
||||
|
||||
@@ -403,7 +403,7 @@ function(px4_os_add_flags)
|
||||
# TODO: Wmissing-field-initializers ignored on older toolchain, can be removed eventually
|
||||
list(APPEND added_cxx_flags -Wno-missing-field-initializers)
|
||||
|
||||
elseif ("${PX4_BOARD}" MATCHES "ocpoc")
|
||||
elseif ("${PX4_BOARD}" MATCHES "aerotenna_ocpoc")
|
||||
|
||||
add_definitions(
|
||||
-D__PX4_POSIX_OCPOC
|
||||
@@ -412,7 +412,7 @@ function(px4_os_add_flags)
|
||||
-D__PX4_POSIX
|
||||
)
|
||||
|
||||
elseif ("${PX4_BOARD}" STREQUAL "bbblue")
|
||||
elseif ("${PX4_BOARD}" STREQUAL "beaglebone_blue")
|
||||
|
||||
add_definitions(
|
||||
-D__PX4_POSIX_BBBLUE
|
||||
@@ -473,7 +473,7 @@ endfunction()
|
||||
# OUT : the target list
|
||||
#
|
||||
# Example:
|
||||
# px4_os_prebuild_targets(OUT target_list BOARD px4fmu-v2)
|
||||
# px4_os_prebuild_targets(OUT target_list BOARD px4_fmu-v2)
|
||||
#
|
||||
function(px4_os_prebuild_targets)
|
||||
px4_parse_function_args(
|
||||
|
||||
Reference in New Issue
Block a user