Config.in 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. config BR2_PACKAGE_LIBRESSL_ARCH_SUPPORTS
  2. bool
  3. # see include/CMakeLists.txt
  4. default y if BR2_aarch64 || BR2_aarch64_be
  5. default y if BR2_arm || BR2_armeb
  6. default y if BR2_i386 || BR2_x86_64
  7. default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
  8. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  9. default y if BR2_RISCV_64
  10. default y if BR2_sparc64
  11. config BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
  12. bool
  13. config BR2_PACKAGE_OPENSSL
  14. bool "openssl support"
  15. select BR2_PACKAGE_HAS_OPENSSL
  16. help
  17. Select the desired ssl library provider.
  18. if BR2_PACKAGE_OPENSSL
  19. choice
  20. prompt "ssl library"
  21. help
  22. Select OpenSSL or LibreSSL.
  23. config BR2_PACKAGE_LIBOPENSSL
  24. bool "openssl"
  25. select BR2_PACKAGE_ZLIB
  26. help
  27. A collaborative effort to develop a robust, commercial-grade,
  28. fully featured, and Open Source toolkit implementing the
  29. Secure Sockets Layer (SSL v2/v3) and Transport Security
  30. (TLS v1) as well as a full-strength general-purpose
  31. cryptography library.
  32. https://openssl-library.org/
  33. Note: Some helper scripts need perl.
  34. source "package/libopenssl/Config.in"
  35. config BR2_PACKAGE_LIBRESSL
  36. bool "libressl"
  37. depends on BR2_PACKAGE_LIBRESSL_ARCH_SUPPORTS
  38. depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
  39. depends on BR2_TOOLCHAIN_HAS_THREADS
  40. # uClibc doesn't provide __register_atfork() without NPTL
  41. depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_HAS_THREADS_NPTL
  42. help
  43. LibreSSL is a version of the TLS/crypto stack forked from
  44. OpenSSL in 2014, with goals of modernizing the codebase,
  45. improving security, and applying best practice development
  46. processes.
  47. http://www.libressl.org/
  48. source "package/libressl/Config.in"
  49. # openssl from br2-external trees, if any
  50. source "$BR2_BASE_DIR/.br2-external.in.openssl"
  51. endchoice
  52. config BR2_PACKAGE_HAS_OPENSSL
  53. bool
  54. config BR2_PACKAGE_PROVIDES_OPENSSL
  55. string
  56. default "libopenssl" if BR2_PACKAGE_LIBOPENSSL
  57. default "libressl" if BR2_PACKAGE_LIBRESSL
  58. endif
  59. # ensure libopenssl is used for the host variant
  60. config BR2_PACKAGE_PROVIDES_HOST_OPENSSL
  61. string
  62. default "host-libopenssl"