-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
scripts: footprint: size_report: Add JSON prefix support #84915
base: main
Are you sure you want to change the base?
Conversation
nordicjm
commented
Jan 30, 2025
Adds support for prefixing JSON output files for different targets Signed-off-by: Jamie McCrae <[email protected]>
Adds support for prefixing files with the target of bl2 or tfm Signed-off-by: Jamie McCrae <[email protected]>
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.
Let's just use what the script already supports, which is --json <file>
.
-o ${CMAKE_BINARY_DIR} | ||
${workspace_arg} | ||
-d ${report_depth} | ||
--prefix bl2 |
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.
size_report
already supports writing to an alternative file using --json <file>
, so why not use what we have instead of introducing yet another argument ?
--prefix bl2 | |
--json bl2_${report}.json |
@@ -40,6 +40,7 @@ if (CONFIG_BUILD_WITH_TFM) | |||
-o ${CMAKE_BINARY_DIR} | |||
${workspace_arg} | |||
-d ${report_depth} | |||
--prefix tfm |
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.
size_report
already supports writing to an alternative file using --json <file>
, so why not use what we have instead of introducing yet another argument ?
--prefix tfm | |
--json tfm_${report}.json |