diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-20 10:57:22 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-20 10:57:22 +0200 |
commit | bc5ad557b704093747089bb5bcd2080938bb9918 (patch) | |
tree | cc28a17d6e5c64e47b0a45596f6943f2314b09de /package/openssl/Makefile | |
parent | 550d6fcb12647b11e947ed909d5a4f31361f8692 (diff) |
create a subpackage flavour for elliptic curves
Diffstat (limited to 'package/openssl/Makefile')
-rw-r--r-- | package/openssl/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/package/openssl/Makefile b/package/openssl/Makefile index 43b860369..0ab3c2e7f 100644 --- a/package/openssl/Makefile +++ b/package/openssl/Makefile @@ -21,6 +21,10 @@ PKG_DESCR_DEV:= development files for openssl PKG_SECTION_DEV:= devel PKG_DEPENDS_DEV:= libopenssl +PKG_FLAVOURS:= WITH_EC +PKGFD_WITH_EC:= enable Elliptic Curve crypto +PKGSUB_WITH_EC:= libopenssl + include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,LIBOPENSSL,libopenssl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) @@ -37,13 +41,17 @@ BUILD_STYLE:= manual INSTALL_TARGET:= install_sw FAKE_FLAGS+= INSTALL_PREFIX=${WRKINST} -OPENSSL_OPTIONS = shared no-ec no-err no-krb5 no-threads zlib-dynamic no-engines no-camellia no-idea no-rc5 no-mdc2 no-sha0 no-smime no-aes192 no-ripemd no-cast +OPENSSL_OPTIONS:= shared no-err no-krb5 no-threads zlib-dynamic no-engines no-camellia no-idea no-rc5 no-mdc2 no-sha0 no-smime no-aes192 no-ripemd no-cast + +ifeq ($(ADK_PACKAGE_OPENSSL_WITH_EC),) +OPENSSL_OPTIONS+= no-ec +endif do-configure: (cd $(WRKBUILD); \ PATH=$(TARGET_PATH) \ OPTIMIZATION_FLAGS="$(TARGET_CFLAGS) -fPIC" \ - bash -x ./Configure linux-embedded \ + ./Configure linux-embedded \ --prefix=/usr \ --openssldir=/etc/ssl \ -I$(STAGING_DIR)/usr/include \ |