summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 \