-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matter/fast pair: Add support for merging hex files without partition manager #18792
base: main
Are you sure you want to change the base?
Changes from 1 commit
6c06685
53b9449
c51efb6
7491f01
2b3619b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -108,3 +108,20 @@ function(suit_create_cache_partition args output_file partition_num recovery) | |||||||||
"${output_file_name}type=cache;${output_file_name}partition=${partition_num};") | ||||||||||
endif() | ||||||||||
endfunction() | ||||||||||
|
||||||||||
# Usage: | ||||||||||
# suit_add_merge_hex_file(FILES <files> [DEPENDENCIES <dependencies>] | ||||||||||
# | ||||||||||
# Add files which should be merged into the uicr_merged.hex output file, respecting any | ||||||||||
# dependencies that need to be generated before hand. This will overwrite existing data if it is | ||||||||||
# present in other files | ||||||||||
function(suit_add_merge_hex_file) | ||||||||||
cmake_parse_arguments(VAR "" "" "FILES;DEPENDENCIES" ${ARGN}) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. better to start using
Suggested change
|
||||||||||
|
||||||||||
if(NOT VAR_FILES) | ||||||||||
message(FATAL_ERROR "suit_add_merge_hex_file missing required argument FILES") | ||||||||||
endif() | ||||||||||
Comment on lines
+121
to
+123
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be simplified and also ensure common way of printing argument errors:
Suggested change
|
||||||||||
|
||||||||||
set_property(GLOBAL APPEND PROPERTY SUIT_MERGE_FILE ${VAR_FILES}) | ||||||||||
set_property(GLOBAL APPEND PROPERTY SUIT_MERGE_DEPENDENCIES ${VAR_DEPENDENCIES}) | ||||||||||
endfunction() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
observation: this is really not self-explaining what the difference between
ARTIFACTS_TO_MERGE
andmerge_files
is.But as this file in general is messy, then there is not change requested for this PR.