mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
component_information: switch from gzip to xz
Improves compression, e.g. current params file: 62KB to 51KB There's also a PRESET_EXTREME option, which reduces by another 2KB. We can revisit that once needed, as it increases mem usage as well.
This commit is contained in:
@@ -209,13 +209,13 @@ function(px4_add_board)
|
||||
endif()
|
||||
foreach(metadata ${EMBEDDED_METADATA})
|
||||
if(${metadata} STREQUAL "parameters")
|
||||
list(APPEND romfs_extra_files ${PX4_BINARY_DIR}/params.json.gz)
|
||||
list(APPEND romfs_extra_files ${PX4_BINARY_DIR}/params.json.xz)
|
||||
list(APPEND romfs_extra_dependencies parameters_xml)
|
||||
else()
|
||||
message(FATAL_ERROR "invalid value for EMBEDDED_METADATA: ${metadata}")
|
||||
endif()
|
||||
endforeach()
|
||||
list(APPEND romfs_extra_files ${PX4_BINARY_DIR}/component_version.json.gz)
|
||||
list(APPEND romfs_extra_files ${PX4_BINARY_DIR}/component_version.json.xz)
|
||||
list(APPEND romfs_extra_dependencies component_version_json)
|
||||
set(config_romfs_extra_files ${romfs_extra_files} CACHE INTERNAL "extra ROMFS files" FORCE)
|
||||
set(config_romfs_extra_dependencies ${romfs_extra_dependencies} CACHE INTERNAL "extra ROMFS deps" FORCE)
|
||||
|
||||
Reference in New Issue
Block a user