Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] openssl: add host variant
@ 2013-04-09 18:27 Gustavo Zacarias
  2013-04-09 18:27 ` [Buildroot] [PATCH 2/3] swig: new package Gustavo Zacarias
  2013-04-09 18:27 ` [Buildroot] [PATCH 3/3] python-m2crypto: " Gustavo Zacarias
  0 siblings, 2 replies; 7+ messages in thread
From: Gustavo Zacarias @ 2013-04-09 18:27 UTC (permalink / raw)
  To: buildroot

Useful for the upcoming host-python-m2crypto package.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/openssl/openssl.mk | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
index 7701d51..8486c44 100644
--- a/package/openssl/openssl.mk
+++ b/package/openssl/openssl.mk
@@ -46,6 +46,18 @@ ifeq ($(BR2_x86_i386),y)
 	OPENSSL_TARGET_ARCH = generic32 386
 endif
 
+define HOST_OPENSSL_CONFIGURE_CMDS
+	(cd $(@D); \
+		$(HOST_CONFIGURE_OPTS) \
+		./config \
+		--prefix=/usr \
+		--openssldir=/etc/ssl \
+		--libdir=/lib \
+		shared \
+		no-zlib \
+	)
+endef
+
 define OPENSSL_CONFIGURE_CMDS
 	(cd $(@D); \
 		$(TARGET_CONFIGURE_ARGS) \
@@ -69,6 +81,10 @@ define OPENSSL_CONFIGURE_CMDS
 	$(SED) "s:-O[0-9]:$(OPENSSL_CFLAGS):" $(@D)/Makefile
 endef
 
+define HOST_OPENSSL_BUILD_CMDS
+	$(MAKE1) -C $(@D)
+endef
+
 define OPENSSL_BUILD_CMDS
 	$(MAKE1) -C $(@D)
 endef
@@ -77,6 +93,10 @@ define OPENSSL_INSTALL_STAGING_CMDS
 	$(MAKE1) -C $(@D) INSTALL_PREFIX=$(STAGING_DIR) install
 endef
 
+define HOST_OPENSSL_INSTALL_CMDS
+	$(MAKE1) -C $(@D) INSTALL_PREFIX=$(HOST_DIR) install
+endef
+
 define OPENSSL_INSTALL_TARGET_CMDS
 	$(MAKE1) -C $(@D) INSTALL_PREFIX=$(TARGET_DIR) install
 endef
@@ -124,3 +144,4 @@ define OPENSSL_UNINSTALL_CMDS
 endef
 
 $(eval $(generic-package))
+$(eval $(host-generic-package))
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/3] swig: new package
  2013-04-09 18:27 [Buildroot] [PATCH 1/3] openssl: add host variant Gustavo Zacarias
@ 2013-04-09 18:27 ` Gustavo Zacarias
  2013-04-09 18:35   ` Thomas Petazzoni
  2013-04-09 18:27 ` [Buildroot] [PATCH 3/3] python-m2crypto: " Gustavo Zacarias
  1 sibling, 1 reply; 7+ messages in thread
From: Gustavo Zacarias @ 2013-04-09 18:27 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/Config.in      |  1 +
 package/swig/Config.in | 11 +++++++++++
 package/swig/swig.mk   | 16 ++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 package/swig/Config.in
 create mode 100644 package/swig/swig.mk

diff --git a/package/Config.in b/package/Config.in
index 2e7dc67..3c05794 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -89,6 +89,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/sed/Config.in"
 endif
 source "package/sstrip/Config.in"
+source "package/swig/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/tar/Config.in"
 endif
diff --git a/package/swig/Config.in b/package/swig/Config.in
new file mode 100644
index 0000000..19d49f4
--- /dev/null
+++ b/package/swig/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_SWIG
+	bool "swig"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  SWIG is a software development tool that connects programs written
+	  in C and C++ with a variety of high-level programming languages.
+
+	  http://www.swig.org/
+
+comment "swig requires C++ support in toolchain"
+	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/swig/swig.mk b/package/swig/swig.mk
new file mode 100644
index 0000000..fae4642
--- /dev/null
+++ b/package/swig/swig.mk
@@ -0,0 +1,16 @@
+#############################################################
+#
+# swig
+#
+#############################################################
+
+SWIG_VERSION = 2.0.9
+SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION)
+SWIG_DEPENDENCIES = host-bison
+SWIG_CONF_OPT = --without-pcre --disable-ccache
+HOST_SWIG_CONF_OPT = --without-pcre --disable-ccache
+SWIG_LICENSE = GPLv3+ BSD-2c BSD-3c
+SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 3/3] python-m2crypto: new package
  2013-04-09 18:27 [Buildroot] [PATCH 1/3] openssl: add host variant Gustavo Zacarias
  2013-04-09 18:27 ` [Buildroot] [PATCH 2/3] swig: new package Gustavo Zacarias
@ 2013-04-09 18:27 ` Gustavo Zacarias
  2013-04-09 21:41   ` Arnout Vandecappelle
  1 sibling, 1 reply; 7+ messages in thread
From: Gustavo Zacarias @ 2013-04-09 18:27 UTC (permalink / raw)
  To: buildroot

Add the python-m2crypto, host-variant only, for CRDA.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/python-m2crypto/python-m2crypto.mk | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/python-m2crypto/python-m2crypto.mk

diff --git a/package/python-m2crypto/python-m2crypto.mk b/package/python-m2crypto/python-m2crypto.mk
new file mode 100644
index 0000000..80523b8
--- /dev/null
+++ b/package/python-m2crypto/python-m2crypto.mk
@@ -0,0 +1,25 @@
+#############################################################
+#
+# python-m2crypto
+#
+#############################################################
+
+PYTHON_M2CRYPTO_VERSION = 0.21.1
+PYTHON_M2CRYPTO_SITE = http://pypi.python.org/packages/source/M/M2Crypto
+PYTHON_M2CRYPTO_SOURCE = M2Crypto-$(PYTHON_M2CRYPTO_VERSION).tar.gz
+HOST_PYTHON_M2CRYPTO_DEPENDENCIES = host-openssl host-python host-python-setuptools host-swig
+
+define HOST_PYTHON_M2CRYPTO_BUILD_CMDS
+	(cd $(@D); \
+		$(HOST_CONFIGURE_OPTS) \
+		PYTHONXCPREFIX="$(HOST_DIR)/usr/" \
+		LDFLAGS="-L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib" \
+	$(HOST_DIR)/usr/bin/python setup.py build_ext --openssl=$(HOST_DIR)/usr)
+endef
+
+define HOST_PYTHON_M2CRYPTO_INSTALL_CMDS
+	(cd $(@D); PYTHONPATH=$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
+	$(HOST_DIR)/usr/bin/python setup.py install --prefix=$(HOST_DIR)/usr)
+endef
+
+$(eval $(host-generic-package))
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/3] swig: new package
  2013-04-09 18:27 ` [Buildroot] [PATCH 2/3] swig: new package Gustavo Zacarias
@ 2013-04-09 18:35   ` Thomas Petazzoni
  2013-04-09 18:39     ` Gustavo Zacarias
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2013-04-09 18:35 UTC (permalink / raw)
  To: buildroot

Dear Gustavo Zacarias,

On Tue,  9 Apr 2013 15:27:06 -0300, Gustavo Zacarias wrote:

> +config BR2_PACKAGE_SWIG
> +	bool "swig"
> +	depends on BR2_INSTALL_LIBSTDCPP
> +	help
> +	  SWIG is a software development tool that connects programs written
> +	  in C and C++ with a variety of high-level programming languages.
> +
> +	  http://www.swig.org/

Does it make sense to support swig on the target if we are deprecating
the native toolchain on target and related development files?

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/3] swig: new package
  2013-04-09 18:35   ` Thomas Petazzoni
@ 2013-04-09 18:39     ` Gustavo Zacarias
  0 siblings, 0 replies; 7+ messages in thread
From: Gustavo Zacarias @ 2013-04-09 18:39 UTC (permalink / raw)
  To: buildroot

On 04/09/2013 03:35 PM, Thomas Petazzoni wrote:

> Does it make sense to support swig on the target if we are deprecating
> the native toolchain on target and related development files?

Maybe not.
I can respin and also go on a deprecation spree for other packages that
fit in the same scenario.
Regards.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 3/3] python-m2crypto: new package
  2013-04-09 18:27 ` [Buildroot] [PATCH 3/3] python-m2crypto: " Gustavo Zacarias
@ 2013-04-09 21:41   ` Arnout Vandecappelle
  2013-04-09 22:21     ` Gustavo Zacarias
  0 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2013-04-09 21:41 UTC (permalink / raw)
  To: buildroot

On 09/04/13 20:27, Gustavo Zacarias wrote:
> Add the python-m2crypto, host-variant only, for CRDA.

  Is there a reason to make it host-only? Seems like this is potentially 
useful on target as well... Or do you expect build difficulties?

  Regards,
  Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 3/3] python-m2crypto: new package
  2013-04-09 21:41   ` Arnout Vandecappelle
@ 2013-04-09 22:21     ` Gustavo Zacarias
  0 siblings, 0 replies; 7+ messages in thread
From: Gustavo Zacarias @ 2013-04-09 22:21 UTC (permalink / raw)
  To: buildroot

On 04/09/2013 06:41 PM, Arnout Vandecappelle wrote:

>  Is there a reason to make it host-only? Seems like this is potentially
> useful on target as well... Or do you expect build difficulties?

I've hit cross build issues, basically x86_64 for an ARM target isn't nice.
Seems some extra python tricks will be necessary for this one on the target.
Regards.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-09 22:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 18:27 [Buildroot] [PATCH 1/3] openssl: add host variant Gustavo Zacarias
2013-04-09 18:27 ` [Buildroot] [PATCH 2/3] swig: new package Gustavo Zacarias
2013-04-09 18:35   ` Thomas Petazzoni
2013-04-09 18:39     ` Gustavo Zacarias
2013-04-09 18:27 ` [Buildroot] [PATCH 3/3] python-m2crypto: " Gustavo Zacarias
2013-04-09 21:41   ` Arnout Vandecappelle
2013-04-09 22:21     ` Gustavo Zacarias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox