Patchwork [2/3] python: added hidden openssl option to host python

login
register
mail settings
Submitter Rohan Fletcher
Date July 20, 2013, 10:27 a.m.
Message ID <1374316034-31973-2-git-send-email-rohfledev@gmail.com>
Download mbox | patch
Permalink /patch/260436/
State Rejected
Delegated to: Thomas Petazzoni
Headers show

Comments

Rohan Fletcher - July 20, 2013, 10:27 a.m.
used by python-pip to use https to download packages

Signed-off-by: Rohan Fletcher <rohfledev@gmail.com>
---
 package/python/Config.in |  6 ++++++
 package/python/python.mk | 11 +++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

Patch

diff --git a/package/python/Config.in b/package/python/Config.in
index cfe73db..0740ef0 100644
--- a/package/python/Config.in
+++ b/package/python/Config.in
@@ -101,6 +101,12 @@  config BR2_PACKAGE_PYTHON_HASHLIB
 	help
 	  hashlib support in Python
 
+config BR2_HOST_PYTHON_SSL_SUPPORT
+	bool
+	help
+	  Includes ssl support in host python build. 
+	  This is disabled by default to reduce build time.
+
 endmenu
 
 endif
diff --git a/package/python/python.mk b/package/python/python.mk
index ecea638..4bd9da1 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -31,8 +31,11 @@  HOST_PYTHON_CONF_OPT += 	\
 	--disable-gdbm		\
 	--disable-bsddb		\
 	--disable-test-modules	\
-	--disable-bz2		\
-	--disable-ssl
+	--disable-bz2		
+
+ifneq ($(BR2_HOST_PYTHON_SSL_SUPPORT), y)
+HOST_PYTHON_CONF_OPT += --disable-ssl
+endif
 
 HOST_PYTHON_MAKE_ENV = \
 	PYTHON_MODULES_INCLUDE=$(HOST_DIR)/usr/include \
@@ -51,6 +54,10 @@  HOST_PYTHON_MAKE = $(MAKE1)
 PYTHON_DEPENDENCIES  = host-python libffi
 
 HOST_PYTHON_DEPENDENCIES = host-expat host-zlib
+ 
+ifeq ($(BR2_HOST_PYTHON_SSL_SUPPORT), y)
+HOST_PYTHON_DEPENDENCIES += host-openssl
+endif
 
 PYTHON_INSTALL_STAGING = YES