Files
strongswan-ext/testing/scripts/recipes/012_wolfssl.mk
T
Tobias Brunner 19611b1d28 testing: Build wolfSSL from the Git repository
Use the same configure options etc. for both builds (no need for the cert
options as we don't use TLS or X.509 parsing) and switch to a Git commit
that includes the SHA-3 OID fix (it's actually the fix itself).
2021-06-22 17:54:15 +02:00

51 lines
1.1 KiB
Makefile

#!/usr/bin/make
PKG = wolfssl
SRC = https://github.com/wolfSSL/$(PKG).git
REV = 0caf3ba456f1 # v4.7.1r + SHA-3 fix
NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
CFLAGS = \
-DWOLFSSL_PUBLIC_MP \
-DWOLFSSL_DES_ECB \
-DHAVE_AES_ECB \
-DHAVE_ECC_BRAINPOOL \
-DWOLFSSL_MIN_AUTH_TAG_SZ=8
CONFIG_OPTS = \
--disable-crypttests \
--disable-examples \
--enable-silent-rules \
--enable-aesccm \
--enable-aesctr \
--enable-camellia \
--enable-curve25519 \
--enable-curve448 \
--enable-des3 \
--enable-ecccustcurves \
--enable-ed25519 \
--enable-ed448 \
--enable-keygen \
--enable-md4 \
--enable-rsapss \
--enable-sha3 \
--enable-shake256
all: install
.$(PKG)-cloned:
[ -d $(PKG) ] || git clone $(SRC) $(PKG)
@touch $@
.$(PKG)-checkout-$(REV): .$(PKG)-cloned
cd $(PKG) && git fetch && git checkout $(REV)
@rm -f .$(PKG)-checkout-* && touch $@
.$(PKG)-built-$(REV): .$(PKG)-checkout-$(REV)
cd $(PKG) && ./autogen.sh && ./configure C_FLAGS="$(CFLAGS)" $(CONFIG_OPTS) && make -j $(NUM_CPUS)
@rm -f .$(PKG)-built-* && touch $@
install: .$(PKG)-built-$(REV)
cd $(PKG) && make install && ldconfig