Skip to content

Commit

Permalink
Don't allow spacecraft module parameters for VOXL 2 builds (#24336)
Browse files Browse the repository at this point in the history
 - 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
  • Loading branch information
katzfey authored Feb 14, 2025
1 parent a151d85 commit eb18edf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/parameters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ if(DISABLE_PARAMS_MODULE_SCOPING)
# allow those timer configurations to be skipped.
if ((${PX4_BOARD_NAME} MATCHES "MODALAI_VOXL2") AND (file_path MATCHES pwm_out))
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()
list(APPEND module_config_files "${file_path}")
endif()
Expand Down

0 comments on commit eb18edf

Please sign in to comment.