blob: 17107aaeb8874088e4b86e706432464a42abc6e4 [file] [log] [blame]
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +01001#!/bin/sh
Bence Szépkúti700ee442020-05-26 00:33:31 +02002#
3# Copyright (C) 2015-2019, Arm Limited, All Rights Reserved
4#
5# This file is part of Mbed TLS (https://tls.mbed.org)
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +01006
Manuel Pégourié-Gonnardd1ddd292015-04-09 10:15:10 +02007set -eu
8
9if [ -d include/mbedtls ]; then :; else
10 echo "$0: must be run from root" >&2
11 exit 1
12fi
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +010013
Nir Sonnenschein03091d12019-01-08 18:15:50 +020014HEADERS=$( ls include/mbedtls/*.h include/psa/*.h | egrep -v 'compat-1\.3\.h' )
Christoph M. Wintersteiger8a0f5bb2018-12-14 15:46:34 +000015HEADERS="$HEADERS 3rdparty/everest/include/everest/everest.h 3rdparty/everest/include/everest/x25519.h"
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +010016
Gilles Peskine9d28c422020-02-26 19:00:46 +010017sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
18 | egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
19 | sort -u > macros
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +010020
21wc -l macros