1#!/bin/sh
2#set -x #echo on
3
4# run this script from the "test" directory after Zephyr is initialized with:
5# cd <to test dir>
6# ./ci_scripts/flash_report_gen.sh
7# the script produces build_reports/flash_report.txt
8
9echo "\n"
10echo "*********************************************************************\n"
11echo "start flash_report_gen.sh\n"
12echo "*********************************************************************\n"
13mkdir -p build_reports
14rm -rf build_reports/rom_report_nrf91_with_tinycrypt.txt
15
16
17# TINYCRYPT     YES
18# MESSAGE_4:    YES
19# VLA:          YES
20rm -rf build
21west build -b nrf9160dk_nrf9160 -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DTINYCRYPT"
22west build -t rom_report > build_reports/rom_report_nrf91_with_tinycrypt.txt
23echo "\n\n\n"
24
25# MBEDTLS     YES
26# MESSAGE_4:    YES
27# VLA:          YES
28rm -rf build
29west build -b nrf9160dk_nrf9160 -- -DCOMMAND_LINE_FLAGS="-DMESSAGE_4 -DMBEDTLS"
30west build -t rom_report > build_reports/rom_report_nrf91_with_mbedtls.txt