Includes library modifications to allow access to AIN_4 (AIN_0 / 5)

Committer:
bryantaylor
Date:
Tue Sep 20 21:26:12 2016 +0000
Revision:
0:eafc3fd41f75
hackathon

Who changed what in which revision?

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