浏览代码

package/python-twisted: add config for TLS support

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>
Adam Duskett 5 年之前
父节点
当前提交
7f5960952f
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      package/python-twisted/Config.in

+ 14 - 0
package/python-twisted/Config.in

@@ -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