Lines Matching +full:rev +full:- +full:parse
4 # SPDX-License-Identifier: Apache-2.0
10 # http://www.apache.org/licenses/LICENSE-2.0
25 # thread configs/config-thread.h
26 # suite-b configs/config-suite-b.h
27 # psk configs/config-ccm-psk-tls1_2.h
31 set -eu
35 if [ -r $CONFIG_H ]; then :; else
42 if grep -i cmake Makefile >/dev/null; then
47 if which arm-none-eabi-gcc >/dev/null 2>&1; then :; else
48 echo "You need the ARM-GCC toolchain in your path" >&2
49 echo "See https://launchpad.net/gcc-arm-embedded/" >&2
53 ARMGCC_FLAGS='-Os -march=armv7-m -mthumb'
54 OUTFILE='00-footprint-summary.txt'
79 scripts/config.py --force set MBEDTLS_NO_PLATFORM_ENTROPY || true
83 CC=arm-none-eabi-gcc AR=arm-none-eabi-ar LD=arm-none-eabi-ld \
86 OUT="size-${NAME}.txt"
87 arm-none-eabi-size -t library/libmbed*.a > "$OUT"
88 log "$( head -n1 "$OUT" )"
89 log "$( tail -n1 "$OUT" )"
99 log "for bare-metal ARM Cortex-M3/M4 microcontrollers."
102 MBEDTLS_VERSION=$( sed -n 's/.*VERSION_STRING *"\(.*\)"/\1/p' $VERSION_H )
103 if git rev-parse HEAD >/dev/null; then
104 GIT_HEAD=$( git rev-parse HEAD | head -c 10 )
112 log "$( arm-none-eabi-gcc --version | head -n1 )"
116 doit thread configs/config-thread.h
117 doit suite-b configs/config-suite-b.h
118 doit psk configs/config-ccm-psk-tls1_2.h
120 zip mbedtls-footprint.zip "$OUTFILE" size-*.txt >/dev/null