Patchwork [1/2] Added support for hashlib in the target Python

login
register
mail settings
Submitter Avishay Orpaz
Date Aug. 13, 2012, 2:19 p.m.
Message ID <1344867578-12784-1-git-send-email-avishorp@gmail.com>
Download mbox | patch
Permalink /patch/176955/
State Accepted
Commit 12097e6e4e4f732d37203d7b025e599bfd930349
Headers show

Comments

Avishay Orpaz - Aug. 13, 2012, 2:19 p.m.
---
 package/python/Config.in |    6 ++++++
 package/python/python.mk |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)
Gustavo Zacarias - March 24, 2013, 12:30 p.m.
On 08/13/2012 11:19 AM, Avishay Orpaz wrote:

> ---
>  package/python/Config.in |    6 ++++++
>  package/python/python.mk |    4 ++++
>  2 files changed, 10 insertions(+), 0 deletions(-)

Acked-By: Gustavo Zacarias <gustavo@zacarias.com.ar>
Can you resend it with a proper SoB line please?
Thanks.
Peter Korsgaard - May 3, 2013, 12:38 p.m.
>>>>> "Avishay" == Avishay Orpaz <avishorp@gmail.com> writes:

 Avishay> ---
 Avishay>  package/python/Config.in |    6 ++++++
 Avishay>  package/python/python.mk |    4 ++++
 Avishay>  2 files changed, 10 insertions(+), 0 deletions(-)

Committed, thanks.

Patch

diff --git a/package/python/Config.in b/package/python/Config.in
index 11aa267..65aac23 100644
--- a/package/python/Config.in
+++ b/package/python/Config.in
@@ -93,6 +93,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 fae4e5c..0584a5a 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -110,6 +110,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 \