summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-04-10 10:29:24 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-04-17 23:00:21 +0200
commit7842789cb539b6b64d61b03f5c8dbe6813f01da7 (patch)
tree6c0e6e3d12ba37f9ffd19f878f907534e41b1ab0 /package
parent7ab3c58a1d117ed2b48cf195a527f5c8ff08ca60 (diff)
downloadbuildroot-novena-7842789cb539b6b64d61b03f5c8dbe6813f01da7.tar.gz
buildroot-novena-7842789cb539b6b64d61b03f5c8dbe6813f01da7.zip
openssl: add host variant
Useful for the upcoming host-python-m2crypto package. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/openssl/openssl.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
index 7701d5159..8486c448b 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))