adjust-config.sh 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #!/bin/sh
  2. set -eu
  3. if [ $# -ne 2 ]; then
  4. echo "Usage: $0 path/to/config.pl path/to/config.h" >&2
  5. exit 1
  6. fi
  7. SCRIPT=$1
  8. FILE=$2
  9. conf() {
  10. $SCRIPT -f $FILE $@
  11. }
  12. # Set the target specific header
  13. conf set YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE \"mbedtls/target_config.h\"
  14. # not supported on mbed OS, nor used by mbed Client
  15. conf unset MBEDTLS_NET_C
  16. conf unset MBEDTLS_TIMING_C
  17. # not supported on all targets with mbed OS, nor used by mbed Client
  18. conf unset MBEDTLS_FS_IO
  19. conf unset MBEDTLS_CIPHER_MODE_CFB
  20. conf unset MBEDTLS_CIPHER_MODE_CTR
  21. conf unset MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
  22. conf unset MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
  23. conf unset MBEDTLS_CIPHER_PADDING_ZEROS
  24. conf unset MBEDTLS_ECP_DP_SECP192R1_ENABLED
  25. conf unset MBEDTLS_ECP_DP_SECP224R1_ENABLED
  26. conf unset MBEDTLS_ECP_DP_SECP521R1_ENABLED
  27. conf unset MBEDTLS_ECP_DP_SECP192K1_ENABLED
  28. conf unset MBEDTLS_ECP_DP_SECP224K1_ENABLED
  29. conf unset MBEDTLS_ECP_DP_SECP256K1_ENABLED
  30. conf unset MBEDTLS_ECP_DP_BP256R1_ENABLED
  31. conf unset MBEDTLS_ECP_DP_BP384R1_ENABLED
  32. conf unset MBEDTLS_ECP_DP_BP512R1_ENABLED
  33. conf unset MBEDTLS_PK_PARSE_EC_EXTENDED
  34. conf unset MBEDTLS_AESNI_C
  35. conf unset MBEDTLS_ARC4_C
  36. conf unset MBEDTLS_BLOWFISH_C
  37. conf unset MBEDTLS_CAMELLIA_C
  38. conf unset MBEDTLS_DES_C
  39. conf unset MBEDTLS_DHM_C
  40. conf unset MBEDTLS_GENPRIME
  41. conf unset MBEDTLS_MD5_C
  42. conf unset MBEDTLS_PADLOCK_C
  43. conf unset MBEDTLS_PEM_WRITE_C
  44. conf unset MBEDTLS_PKCS5_C
  45. conf unset MBEDTLS_PKCS12_C
  46. conf unset MBEDTLS_RIPEMD160_C
  47. conf unset MBEDTLS_SHA1_C
  48. conf unset MBEDTLS_XTEA_C
  49. conf unset MBEDTLS_X509_RSASSA_PSS_SUPPORT
  50. conf unset MBEDTLS_X509_CSR_PARSE_C
  51. conf unset MBEDTLS_X509_CREATE_C
  52. conf unset MBEDTLS_X509_CRT_WRITE_C
  53. conf unset MBEDTLS_X509_CSR_WRITE_C
  54. conf unset MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  55. conf unset MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  56. conf unset MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
  57. conf unset MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
  58. conf unset MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  59. conf unset MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  60. conf unset MBEDTLS_SSL_FALLBACK_SCSV
  61. conf unset MBEDTLS_SSL_CBC_RECORD_SPLITTING
  62. conf unset MBEDTLS_SSL_PROTO_TLS1
  63. conf unset MBEDTLS_SSL_PROTO_TLS1_1
  64. conf unset MBEDTLS_SSL_TRUNCATED_HMAC