2
0

Kconfig 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Kconfig - Cryptography primitive options for wolfSSL
  2. #
  3. # Copyright (c) 2016 Intel Corporation
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. config ZEPHYR_WOLFSSL_MODULE
  18. bool
  19. config WOLFSSL_PROMPTLESS
  20. bool
  21. help
  22. Symbol to disable the prompt for WOLFSSL selection.
  23. This symbol may be used internally in a Kconfig tree to hide the
  24. wolfSSL menu prompt and instead handle the selection of WOLFSSL from
  25. dependent sub-configurations and thus preven stuck symbol behavior.
  26. menuconfig WOLFSSL
  27. bool "wolfSSL Support" if !WOLFSSL_PROMPTLESS
  28. help
  29. This option enables the wolfSSL cryptography library.
  30. if WOLFSSL
  31. choice WOLFSSL_IMPLEMENTATION
  32. prompt "Select implementation"
  33. default WOLFSSL_BUILTIN
  34. config WOLFSSL_BUILTIN
  35. bool "Enable wolfSSL integrated sources"
  36. help
  37. Link with local wolfSSL sources instead of external library.
  38. config WOLFSSL_LIBRARY
  39. bool "Enable wolfSSL external library"
  40. help
  41. This option enables wolfSSL library.
  42. endchoice
  43. config WOLFSSL_SETTINGS_FILE
  44. string "wolfSSL settings file"
  45. depends on WOLFSSL_BUILTIN
  46. default "user_settings-tls-generic.h"
  47. help
  48. Use a specific wolfSSL settings file. The default config file
  49. file can be tweaked with Kconfig. The default settings is
  50. suitable to communicate with majority of HTTPS servers on the Internet,
  51. but has relatively many features enabled. To optimize resources for
  52. special TLS usage, use available Kconfig settings, or select an
  53. alternative config.
  54. rsource "Kconfig.tls-generic"
  55. config WOLFSSL_DEBUG
  56. bool "wolfSSL debug activation"
  57. depends on WOLFSSL_BUILTIN
  58. help
  59. Enable debugging activation for wolfSSL configuration. If you use
  60. wolfSSL/Zephyr integration (e.g. net_app), this will activate debug
  61. logging (of the level configured by WOLFSSL_DEBUG_LEVEL).
  62. config WOLFSSL_INSTALL_PATH
  63. string "wolfSSL install path"
  64. depends on WOLFSSL_LIBRARY
  65. help
  66. This option holds the path where the wolfSSL libraries and headers are
  67. installed. Make sure this option is properly set when WOLFSSL_LIBRARY
  68. is enabled otherwise the build will fail.
  69. config APP_LINK_WITH_WOLFSSL
  70. bool "Link 'app' with WOLFSSL"
  71. default y
  72. help
  73. Add WOLFSSL header files to the 'app' include path. It may be
  74. disabled if the include paths for WOLFSSL are causing aliasing
  75. issues for 'app'.
  76. endif