From 12097e6e4e4f732d37203d7b025e599bfd930349 Mon Sep 17 00:00:00 2001 From: Avishay Orpaz Date: Mon, 13 Aug 2012 04:19:37 +0000 Subject: Added support for hashlib in the target Python Signed-off-by: Peter Korsgaard --- package/python/Config.in | 6 ++++++ package/python/python.mk | 4 ++++ 2 files changed, 10 insertions(+) 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 \ -- cgit v1.2.3