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:
Eric Katzfey 2025-02-13 21:49:09 -08:00 committed by GitHub
parent a151d85a1c
commit eb18edf5eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()