summaryrefslogtreecommitdiffstats
path: root/rules/host-softhsm.make
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2018-10-02 16:11:40 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-10 16:49:51 +0200
commit530b68a1220c497117d5168788f0688a16014d3a (patch)
treecab06bd1376943f7e0373debdab65bdbf913d77c /rules/host-softhsm.make
parent6860b189b4abd4633e2e4d55d6a6b59ef0b717ad (diff)
downloadptxdist-530b68a1220c497117d5168788f0688a16014d3a.tar.gz
ptxdist-530b68a1220c497117d5168788f0688a16014d3a.tar.xz
host-softhsm: add new host tool
This package emulates an HSM (Hardware Secure Module) for testing purposes. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-softhsm.make')
-rw-r--r--rules/host-softhsm.make43
1 files changed, 43 insertions, 0 deletions
diff --git a/rules/host-softhsm.make b/rules/host-softhsm.make
new file mode 100644
index 000000000..bbd0183e0
--- /dev/null
+++ b/rules/host-softhsm.make
@@ -0,0 +1,43 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Juergen Borleis <jbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SOFTHSM) += host-softhsm
+
+#
+# Paths and names
+#
+HOST_SOFTHSM_VERSION := 2.4.0
+HOST_SOFTHSM_MD5 := 1c960f83ced41244c3ff8f514a276d88
+HOST_SOFTHSM := softhsm-$(HOST_SOFTHSM_VERSION)
+HOST_SOFTHSM_SUFFIX := tar.gz
+HOST_SOFTHSM_URL := https://dist.opendnssec.org/source/$(HOST_SOFTHSM).$(HOST_SOFTHSM_SUFFIX)
+HOST_SOFTHSM_SOURCE := $(SRCDIR)/$(HOST_SOFTHSM).$(HOST_SOFTHSM_SUFFIX)
+HOST_SOFTHSM_DIR := $(HOST_BUILDDIR)/$(HOST_SOFTHSM)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_SOFTHSM_CONF_TOOL := autoconf
+HOST_SOFTHSM_CONF_OPT := \
+ $(HOST_AUTOCONF) \
+ --disable-non-paged-memory \
+ --disable-gost \
+ --with-crypto-backend=openssl \
+ --without-migrate \
+ --with-p11-kit=/share/p11-kit/modules
+
+# vim: syntax=make