openssl: add host variant
PATCH 1/3 openssl: add host variant
Useful for the upcoming host-python-m2crypto package.
--- package/openssl/openssl.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
package/openssl/openssl.mk +21 -0
@@ -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))
Signature · 1 line
1.8.1.5
PATCH 2/3 swig: new package
--- 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
package/Config.in +1 -0
@@ -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
package/swig/Config.in new file +11 -0
@@ -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
package/swig/swig.mk new file +16 -0
@@ -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))
Signature · 1 line
1.8.1.5
PATCH 2/3 swig: new package
Dear Gustavo Zacarias,
package/swig/Config.in line 8
Quoted 8 lines · Gustavo Zacarias
package/swig/Config.in new file +8
-0+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
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 2/3 swig: new package
Quoted 2 lines · Thomas Petazzoni
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.
PATCH 3/3 python-m2crypto: new package
In reply to Gustavo ZacariasAdd the python-m2crypto, host-variant only, for CRDA.
--- package/python-m2crypto/python-m2crypto.mk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/python-m2crypto/python-m2crypto.mk
package/python-m2crypto/python-m2crypto.mk new file +25 -0
@@ -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))
Signature · 1 line
1.8.1.5
PATCH 3/3 python-m2crypto: new package
Quoted 1 line · Gustavo Zacarias
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
Signature · 6 lines
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
PATCH 3/3 python-m2crypto: new package
Quoted 2 lines · Arnout Vandecappelle
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.