Preliminary main mbed library for nexpaq development

Committer:
nexpaq
Date:
Fri Nov 04 20:27:58 2016 +0000
Revision:
0:6c56fb4bc5f0
Moving to library for sharing updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nexpaq 0:6c56fb4bc5f0 1 #!/bin/sh
nexpaq 0:6c56fb4bc5f0 2 #
nexpaq 0:6c56fb4bc5f0 3 # This file is part of mbed TLS (https://tls.mbed.org)
nexpaq 0:6c56fb4bc5f0 4 #
nexpaq 0:6c56fb4bc5f0 5 # Copyright (c) 2015-2016, ARM Limited, All Rights Reserved
nexpaq 0:6c56fb4bc5f0 6 #
nexpaq 0:6c56fb4bc5f0 7 # Purpose
nexpaq 0:6c56fb4bc5f0 8 #
nexpaq 0:6c56fb4bc5f0 9 # Comments and uncomments #define lines in the given configuration header file
nexpaq 0:6c56fb4bc5f0 10 # to configure the file for use in mbed OS.
nexpaq 0:6c56fb4bc5f0 11 #
nexpaq 0:6c56fb4bc5f0 12 # Usage: adjust-config.sh [path to config script] [path to config file]
nexpaq 0:6c56fb4bc5f0 13 #
nexpaq 0:6c56fb4bc5f0 14 set -eu
nexpaq 0:6c56fb4bc5f0 15
nexpaq 0:6c56fb4bc5f0 16 if [ $# -ne 2 ]; then
nexpaq 0:6c56fb4bc5f0 17 echo "Usage: $0 path/to/config.pl path/to/config.h" >&2
nexpaq 0:6c56fb4bc5f0 18 exit 1
nexpaq 0:6c56fb4bc5f0 19 fi
nexpaq 0:6c56fb4bc5f0 20
nexpaq 0:6c56fb4bc5f0 21 SCRIPT=$1
nexpaq 0:6c56fb4bc5f0 22 FILE=$2
nexpaq 0:6c56fb4bc5f0 23
nexpaq 0:6c56fb4bc5f0 24 conf() {
nexpaq 0:6c56fb4bc5f0 25 $SCRIPT -f $FILE $@
nexpaq 0:6c56fb4bc5f0 26 }
nexpaq 0:6c56fb4bc5f0 27
nexpaq 0:6c56fb4bc5f0 28 # not supported on mbed OS, nor used by mbed Client
nexpaq 0:6c56fb4bc5f0 29 conf unset MBEDTLS_NET_C
nexpaq 0:6c56fb4bc5f0 30 conf unset MBEDTLS_TIMING_C
nexpaq 0:6c56fb4bc5f0 31
nexpaq 0:6c56fb4bc5f0 32 # not supported on all targets with mbed OS, nor used by mbed Client
nexpaq 0:6c56fb4bc5f0 33 conf unset MBEDTLS_HAVE_TIME_DATE
nexpaq 0:6c56fb4bc5f0 34 conf unset MBEDTLS_FS_IO
nexpaq 0:6c56fb4bc5f0 35 conf set MBEDTLS_NO_PLATFORM_ENTROPY
nexpaq 0:6c56fb4bc5f0 36
nexpaq 0:6c56fb4bc5f0 37 conf unset MBEDTLS_CIPHER_MODE_CFB
nexpaq 0:6c56fb4bc5f0 38 conf unset MBEDTLS_CIPHER_MODE_CTR
nexpaq 0:6c56fb4bc5f0 39 conf unset MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
nexpaq 0:6c56fb4bc5f0 40 conf unset MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
nexpaq 0:6c56fb4bc5f0 41 conf unset MBEDTLS_CIPHER_PADDING_ZEROS
nexpaq 0:6c56fb4bc5f0 42 conf unset MBEDTLS_ECP_DP_SECP192R1_ENABLED
nexpaq 0:6c56fb4bc5f0 43 conf unset MBEDTLS_ECP_DP_SECP224R1_ENABLED
nexpaq 0:6c56fb4bc5f0 44 conf unset MBEDTLS_ECP_DP_SECP521R1_ENABLED
nexpaq 0:6c56fb4bc5f0 45 conf unset MBEDTLS_ECP_DP_SECP192K1_ENABLED
nexpaq 0:6c56fb4bc5f0 46 conf unset MBEDTLS_ECP_DP_SECP224K1_ENABLED
nexpaq 0:6c56fb4bc5f0 47 conf unset MBEDTLS_ECP_DP_SECP256K1_ENABLED
nexpaq 0:6c56fb4bc5f0 48 conf unset MBEDTLS_ECP_DP_BP256R1_ENABLED
nexpaq 0:6c56fb4bc5f0 49 conf unset MBEDTLS_ECP_DP_BP384R1_ENABLED
nexpaq 0:6c56fb4bc5f0 50 conf unset MBEDTLS_ECP_DP_BP512R1_ENABLED
nexpaq 0:6c56fb4bc5f0 51 conf unset MBEDTLS_PK_PARSE_EC_EXTENDED
nexpaq 0:6c56fb4bc5f0 52
nexpaq 0:6c56fb4bc5f0 53 conf unset MBEDTLS_AESNI_C
nexpaq 0:6c56fb4bc5f0 54 conf unset MBEDTLS_ARC4_C
nexpaq 0:6c56fb4bc5f0 55 conf unset MBEDTLS_BLOWFISH_C
nexpaq 0:6c56fb4bc5f0 56 conf unset MBEDTLS_CAMELLIA_C
nexpaq 0:6c56fb4bc5f0 57 conf unset MBEDTLS_DES_C
nexpaq 0:6c56fb4bc5f0 58 conf unset MBEDTLS_DHM_C
nexpaq 0:6c56fb4bc5f0 59 conf unset MBEDTLS_GENPRIME
nexpaq 0:6c56fb4bc5f0 60 conf unset MBEDTLS_MD5_C
nexpaq 0:6c56fb4bc5f0 61 conf unset MBEDTLS_PADLOCK_C
nexpaq 0:6c56fb4bc5f0 62 conf unset MBEDTLS_PEM_WRITE_C
nexpaq 0:6c56fb4bc5f0 63 conf unset MBEDTLS_PKCS5_C
nexpaq 0:6c56fb4bc5f0 64 conf unset MBEDTLS_PKCS12_C
nexpaq 0:6c56fb4bc5f0 65 conf unset MBEDTLS_RIPEMD160_C
nexpaq 0:6c56fb4bc5f0 66 conf unset MBEDTLS_SHA1_C
nexpaq 0:6c56fb4bc5f0 67 conf unset MBEDTLS_XTEA_C
nexpaq 0:6c56fb4bc5f0 68
nexpaq 0:6c56fb4bc5f0 69 conf unset MBEDTLS_X509_RSASSA_PSS_SUPPORT
nexpaq 0:6c56fb4bc5f0 70
nexpaq 0:6c56fb4bc5f0 71 conf unset MBEDTLS_X509_CSR_PARSE_C
nexpaq 0:6c56fb4bc5f0 72 conf unset MBEDTLS_X509_CREATE_C
nexpaq 0:6c56fb4bc5f0 73 conf unset MBEDTLS_X509_CRT_WRITE_C
nexpaq 0:6c56fb4bc5f0 74 conf unset MBEDTLS_X509_CSR_WRITE_C
nexpaq 0:6c56fb4bc5f0 75
nexpaq 0:6c56fb4bc5f0 76 conf unset MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
nexpaq 0:6c56fb4bc5f0 77 conf unset MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
nexpaq 0:6c56fb4bc5f0 78 conf unset MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
nexpaq 0:6c56fb4bc5f0 79 conf unset MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
nexpaq 0:6c56fb4bc5f0 80 conf unset MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
nexpaq 0:6c56fb4bc5f0 81 conf unset MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
nexpaq 0:6c56fb4bc5f0 82 conf unset MBEDTLS_SSL_FALLBACK_SCSV
nexpaq 0:6c56fb4bc5f0 83 conf unset MBEDTLS_SSL_CBC_RECORD_SPLITTING
nexpaq 0:6c56fb4bc5f0 84 conf unset MBEDTLS_SSL_PROTO_TLS1
nexpaq 0:6c56fb4bc5f0 85 conf unset MBEDTLS_SSL_PROTO_TLS1_1
nexpaq 0:6c56fb4bc5f0 86 conf unset MBEDTLS_SSL_TRUNCATED_HMAC
nexpaq 0:6c56fb4bc5f0 87
nexpaq 0:6c56fb4bc5f0 88 conf unset MBEDTLS_PLATFORM_TIME_TYPE_MACRO
nexpaq 0:6c56fb4bc5f0 89