mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Don't allow spacecraft module parameters for VOXL 2 builds (#24336)
- VOXL 2 builds use DISABLE_PARAMS_MODULE_SCOPING for parameters. The new spacecraft module has duplicate symbols with the control_allocator module and so this kills the VOXL 2 build
This commit is contained in:
@@ -62,6 +62,10 @@ if(DISABLE_PARAMS_MODULE_SCOPING)
|
|||||||
# allow those timer configurations to be skipped.
|
# allow those timer configurations to be skipped.
|
||||||
if ((${PX4_BOARD_NAME} MATCHES "MODALAI_VOXL2") AND (file_path MATCHES pwm_out))
|
if ((${PX4_BOARD_NAME} MATCHES "MODALAI_VOXL2") AND (file_path MATCHES pwm_out))
|
||||||
message(STATUS "Skipping pwm file path ${file_path} for VOXL2")
|
message(STATUS "Skipping pwm file path ${file_path} for VOXL2")
|
||||||
|
# Spacecraft has duplicate parameter names which kills the VOXL 2 build. VOXL 2 does not
|
||||||
|
# support the spacecraft module so we skip adding the parameters.
|
||||||
|
elseif ((${PX4_BOARD_NAME} MATCHES "MODALAI_VOXL2") AND (file_path MATCHES spacecraft))
|
||||||
|
message(STATUS "Skipping spacecraft file path ${file_path} for VOXL2")
|
||||||
else()
|
else()
|
||||||
list(APPEND module_config_files "${file_path}")
|
list(APPEND module_config_files "${file_path}")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user