]> Git Repo - buildroot-mgba.git/commitdiff
Added support for hashlib in the target Python
authorAvishay Orpaz <[email protected]>
Mon, 13 Aug 2012 04:19:37 +0000 (04:19 +0000)
committerPeter Korsgaard <[email protected]>
Fri, 3 May 2013 12:38:07 +0000 (14:38 +0200)
Signed-off-by: Peter Korsgaard <[email protected]>
package/python/Config.in
package/python/python.mk

index 4089ccefe60b296388c7585d423086ee9b8197d0..cfe73db10049e44aeb29216ec12795c95d21b96b 100644 (file)
@@ -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
index 71591b724740865d0abc172021696b2e702036ad..4876dd8b5bad4be7ef92526947e2fd48c520cffc 100644 (file)
@@ -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 \
This page took 0.033947 seconds and 4 git commands to generate.