mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
Remove the remaining Mbed TLS-specific bits of field_report.py. Create a wrapper script that calls field_report.py with options for Mbed TLS specifically. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
19 lines
471 B
Bash
Executable File
19 lines
471 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Usage example:
|
|
# scripts/field_report.sh -t armv6m-unknown-eabi -I build-m0plus/include -I ~/Packages/ARMCompiler6.6/include >fields-baremetal-m0plus.csv
|
|
|
|
set -eu
|
|
|
|
script_dir=$(dirname -- "$0")
|
|
lib_dir=.
|
|
if [ ! -d "$lib_dir/library" ] && [ -d "${lib_dir%/*}/library" ]; then
|
|
lib_dir=${lib_dir%/*}
|
|
fi
|
|
|
|
"$script_dir/field_report.py" \
|
|
-DMBEDTLS_ALLOW_PRIVATE_ACCESS \
|
|
"$@" \
|
|
-I "$lib_dir/include" \
|
|
"$lib_dir/include"/*/*.h "$lib_dir/library"/*.[hc]
|