Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nordicjm
Copy link
Collaborator

Adds support for prefixing JSON output files for different targets

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]>
Copy link
Collaborator

@tejlmand tejlmand left a 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
Copy link
Collaborator

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 ?

Suggested change
--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
Copy link
Collaborator

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 ?

Suggested change
--prefix tfm
--json tfm_${report}.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants