1#!/bin/sh 2 3# run this script from the "test" directory after Zephyr is initialized with: 4# cd <to test dir> 5# ./ci_scripts/stack_report_gen.sh 6# the script produces build_reports/stack_report.html 7 8mkdir -p build_reports 9rm -rf build_reports/stack_report.html 10 11 12# TINYCRYPT YES 13# MESSAGE_4: YES 14# VLA: YES 15rm -rf build 16west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DVLA -DMESSAGE_4 -DTINYCRYPT" 17gdb --batch -ex 'py arg_flags="-DVLA -DMESSAGE_4 -DTINYCRYPT"' -x ci_scripts/stack_watch.py 18 19 20# MBEDTLS YES 21# MESSAGE_4: YES 22# VLA: YES 23rm -rf build 24west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DVLA -DMESSAGE_4 -DMBEDTLS" 25gdb --batch -ex 'py arg_flags="-DVLA -DMESSAGE_4 -DMBEDTLS"' -x ci_scripts/stack_watch.py 26 27 28# TINYCRYPT YES 29# MESSAGE_4: YES 30# VLA: NO 31rm -rf build 32west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DTINYCRYPT" 33gdb --batch -ex 'py arg_flags="-DMESSAGE_4 -DTINYCRYPT"' -x ci_scripts/stack_watch.py 34 35# MBEDTLS YES 36# MESSAGE_4: YES 37# VLA: NO 38rm -rf build 39west build -b native_posix -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DMBEDTLS" 40gdb --batch -ex 'py arg_flags="-DMESSAGE_4 -DMBEDTLS"' -x ci_scripts/stack_watch.py