mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 21:23:34 +08:00
boards v6x: save FLASH by removing param longDesc from parameters.json
This commit is contained in:
@@ -368,6 +368,12 @@ if(EXISTS ${BOARD_DEFCONFIG})
|
||||
add_definitions(-DCONSTRAINED_MEMORY)
|
||||
endif()
|
||||
|
||||
set(config_process_params_extra_flags "" CACHE INTERNAL "process params command extra flags" FORCE)
|
||||
|
||||
if(PARAM_REMOVE_LONGDESC)
|
||||
set(config_process_params_extra_flags "--no-long-desc" CACHE INTERNAL "process params command extra flags" FORCE)
|
||||
endif()
|
||||
|
||||
if(TESTING)
|
||||
set(PX4_TESTING "1" CACHE INTERNAL "testing enabled" FORCE)
|
||||
endif()
|
||||
|
||||
@@ -78,7 +78,7 @@ add_custom_target(metadata_parameters
|
||||
--src-path `find ${PX4_SOURCE_DIR}/src -maxdepth 4 -type d` ${generated_params_dir}
|
||||
--inject-xml ${PX4_SOURCE_DIR}/src/lib/parameters/parameters_injected.xml
|
||||
--json ${PX4_BINARY_DIR}/docs/parameters.json
|
||||
--compress
|
||||
--compress ${config_process_params_extra_flags}
|
||||
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/src/lib/parameters/px_process_params.py
|
||||
--src-path `find ${PX4_SOURCE_DIR}/src -maxdepth 4 -type d` ${generated_params_dir}
|
||||
|
||||
Reference in New Issue
Block a user