summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorAvishay Orpaz <avishorp@gmail.com>2012-08-13 04:19:37 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-03 14:38:07 +0200
commit12097e6e4e4f732d37203d7b025e599bfd930349 (patch)
treeb22d6b308cd086862e1f2d6a52827425674d786a /package
parent80e7419680d5eb57da0b0b34248e49dcd81619a8 (diff)
downloadbuildroot-novena-12097e6e4e4f732d37203d7b025e599bfd930349.tar.gz
buildroot-novena-12097e6e4e4f732d37203d7b025e599bfd930349.zip
Added support for hashlib in the target Python
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/python/Config.in6
-rw-r--r--package/python/python.mk4
2 files changed, 10 insertions, 0 deletions
diff --git a/package/python/Config.in b/package/python/Config.in
index 4089ccefe..cfe73db10 100644
--- a/package/python/Config.in
+++ b/package/python/Config.in
@@ -95,6 +95,12 @@ config BR2_PACKAGE_PYTHON_ZLIB
help
zlib support in Python
+config BR2_PACKAGE_PYTHON_HASHLIB
+ bool "hashlib module"
+ select BR2_PACKAGE_OPENSSL
+ help
+ hashlib support in Python
+
endmenu
endif
diff --git a/package/python/python.mk b/package/python/python.mk
index 71591b724..4876dd8b5 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -108,6 +108,10 @@ else
PYTHON_CONF_OPT += --disable-zlib
endif
+ifeq ($(BR2_PACKAGE_PYTHON_HASHLIB),y)
+PYTHON_DEPENDENCIES += openssl
+endif
+
PYTHON_CONF_ENV += \
PYTHON_FOR_BUILD=$(HOST_PYTHON_DIR)/python \
PGEN_FOR_BUILD=$(HOST_PYTHON_DIR)/Parser/pgen \