@@ -54,21 +54,22 @@ while test $# -gt 0; do
5454 echo " default: build, erase and program"
5555 echo " "
5656 echo " options:"
57- echo " -h, --help show brief help"
58- echo " -c, --clean cleanup build artifacts"
59- echo " -b, --build build release with symbols"
60- echo " -tz, --trustzone" use TrustZone configuration
61- echo " -d, --debug build debug"
62- echo " -v, --verbose build verbose"
63- echo " --version use custom version"
64- echo " -e, --erase do erase of internal/external flash"
65- echo " -ei, --erase-int do erase of internal flash"
66- echo " -ee, --erase-ext do erase of external flash"
67- echo " -p, --program program images built"
68- echo " -pi, --program-int program internal image (boot)"
69- echo " -pe, --program-ext program external image (update)"
70- echo " -u, --update build update, sign and program external flash"
71- echo " -t, --delta build update, sign delta and program external flash"
57+ echo " -h, --help show brief help"
58+ echo " -c, --clean cleanup build artifacts"
59+ echo " -b, --build build release with symbols"
60+ echo " -tz, --trustzone" use TrustZone configuration
61+ echo " -wtz, --wc-trustzone" use TrustZone + wolfCrypt configuration
62+ echo " -d, --debug build debug"
63+ echo " -v, --verbose build verbose"
64+ echo " --version use custom version"
65+ echo " -e, --erase do erase of internal/external flash"
66+ echo " -ei, --erase-int do erase of internal flash"
67+ echo " -ee, --erase-ext do erase of external flash"
68+ echo " -p, --program program images built"
69+ echo " -pi, --program-int program internal image (boot)"
70+ echo " -pe, --program-ext program external image (update)"
71+ echo " -u, --update build update, sign and program external flash"
72+ echo " -t, --delta build update, sign delta and program external flash"
7273 exit 0
7374 ;;
7475 -c|--clean)
@@ -86,6 +87,11 @@ while test $# -gt 0; do
8687 echo " Build with TrustZone config"
8788 shift
8889 ;;
90+ -wtz|--wolfcrypt-trustzone)
91+ DO_WOLFCRYPT_TRUSTZONE=1
92+ echo " Build with TrustZone + wolfCrypt config"
93+ shift
94+ ;;
8995 -d|--debug)
9096 DO_BUILD=1
9197 MAKE_ARGS+=" DEBUG=1"
174180if [[ $DO_BUILD == 1 ]]; then
175181 # Build internal flash images for both cores
176182
177- if [[ $DO_TRUSTZONE == 1 ]]; then
183+ if [[ $DO_WOLFCRYPT_TRUSTZONE == 1 ]]; then
184+ config_app=config/examples/nrf5340-wolfcrypt-tz.config
185+ elif [[ $DO_TRUSTZONE == 1 ]]; then
178186 config_app=config/examples/nrf5340-tz.config
179187 else
180188 config_app=config/examples/nrf5340.config
0 commit comments