[Buildroot] [PATCH 2/3] python: added hidden openssl option to host python
Rohan Fletcher
rohfledev at gmail.com
Sat Jul 20 10:27:13 UTC 2013
used by python-pip to use https to download packages
Signed-off-by: Rohan Fletcher <rohfledev at gmail.com>
---
package/python/Config.in | 6 ++++++
package/python/python.mk | 11 +++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
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
--
1.8.1.2
More information about the buildroot
mailing list