#!/bin/sh # run this script from the "test" directory after Zephyr is initialized with: # cd # ./ci_scripts/stack_report_gen.sh # the script produces build_reports/stack_report.html mkdir -p build_reports rm -rf build_reports/stack_report.html # TINYCRYPT YES # MESSAGE_4: YES # VLA: YES rm -rf build west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DVLA -DMESSAGE_4 -DTINYCRYPT" gdb --batch -ex 'py arg_flags="-DVLA -DMESSAGE_4 -DTINYCRYPT"' -x ci_scripts/stack_watch.py # MBEDTLS YES # MESSAGE_4: YES # VLA: YES rm -rf build west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DVLA -DMESSAGE_4 -DMBEDTLS" gdb --batch -ex 'py arg_flags="-DVLA -DMESSAGE_4 -DMBEDTLS"' -x ci_scripts/stack_watch.py # TINYCRYPT YES # MESSAGE_4: YES # VLA: NO rm -rf build west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DTINYCRYPT" gdb --batch -ex 'py arg_flags="-DMESSAGE_4 -DTINYCRYPT"' -x ci_scripts/stack_watch.py # MBEDTLS YES # MESSAGE_4: YES # VLA: NO rm -rf build west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DMBEDTLS" gdb --batch -ex 'py arg_flags="-DMESSAGE_4 -DMBEDTLS"' -x ci_scripts/stack_watch.py