package/python-twisted: add config for TLS support
authorAdam Duskett <Aduskett@gmail.com>
Thu, 5 Dec 2019 22:15:13 +0000 (14:15 -0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 6 Dec 2019 22:13:42 +0000 (23:13 +0100)
Add an option that selects all of the necessary python packages to
ensure that twisted has TLS support.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/python-twisted/Config.in

index b72952f979edb8934df21bc500ff83bb033a0e2f..805f1bc5d68de29fbefc44193af5bf14891fda1b 100644 (file)
@@ -12,3 +12,17 @@ config BR2_PACKAGE_PYTHON_TWISTED
          Python.
 
          https://twistedmatrix.com/trac/
+
+if BR2_PACKAGE_PYTHON_TWISTED
+
+config BR2_PACKAGE_PYTHON_TWISTED_TLS
+       bool "TLS support"
+       depends on BR2_INSTALL_LIBSTDCPP # python-{pyopenssl,service-identity}
+       select BR2_PACKAGE_PYTHON_IDNA # runtime
+       select BR2_PACKAGE_PYTHON_PYOPENSSL # runtime
+       select BR2_PACKAGE_PYTHON_SERVICE_IDENTITY # runtime
+
+comment "TLS support needs a toolchain w/ C++"
+       depends on !BR2_INSTALL_LIBSTDCPP
+
+endif