Skip to content

Commit

Permalink
[mw320] Add to print the memory usage in BUILD.gn
Browse files Browse the repository at this point in the history
Signed-off-by: Chin-Ran Lo <[email protected]>
  • Loading branch information
Chin-Ran Lo authored and crlonxp committed Mar 30, 2023
1 parent c0bdf49 commit bb2f812
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/all-clusters-app/nxp/mw320/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ mw320_executable("shell_mw320") {

ldscript = "${examples_plat_dir}/app/ldscripts/88MW320_xx_xxxx_flash.ld"

ldflags = [ "-T" + rebase_path(ldscript, root_build_dir) ]
ldflags = [ "-T" + rebase_path(ldscript, root_build_dir),
"-Wl,-print-memory-usage",
]
defines = [
"MW320_SHELL_STREAMER",
"SHELL_STREAMER_APP_SPECIFIC",
Expand Down
4 changes: 3 additions & 1 deletion examples/light-switch-combo-app/nxp/mw320/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ mw320_executable("light_switch_combo_app") {

inputs = [ ldscript ]

ldflags = [ "-T" + rebase_path(ldscript, root_build_dir) ]
ldflags = [ "-T" + rebase_path(ldscript, root_build_dir),
"-Wl,-print-memory-usage",
]

defines = [
"MW320_SHELL_STREAMER",
Expand Down

0 comments on commit bb2f812

Please sign in to comment.