Browse Source

Added support for hashlib in the target Python

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Avishay Orpaz 13 years ago
parent
commit
12097e6e4e
2 changed files with 10 additions and 0 deletions
  1. 6 0
      package/python/Config.in
  2. 4 0
      package/python/python.mk

+ 6 - 0
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

+ 4 - 0
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 \