diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2018-10-02 16:12:54 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-10 16:49:51 +0200 |
commit | 5c0d17042bf706e814d5dcee5f7c7141469da80c (patch) | |
tree | 5811abf4e4b7e22a00f8c80a668d5e4e03d7d79e | |
parent | 530b68a1220c497117d5168788f0688a16014d3a (diff) | |
download | ptxdist-5c0d17042bf706e814d5dcee5f7c7141469da80c.tar.gz ptxdist-5c0d17042bf706e814d5dcee5f7c7141469da80c.tar.xz |
host-opensc: add new host tool
Signing and encryption at build-time support.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/host-opensc.in | 10 | ||||
-rw-r--r-- | rules/host-opensc.make | 57 |
2 files changed, 67 insertions, 0 deletions
diff --git a/rules/host-opensc.in b/rules/host-opensc.in new file mode 100644 index 000000000..5a8e77717 --- /dev/null +++ b/rules/host-opensc.in @@ -0,0 +1,10 @@ +## SECTION=hosttools_noprompt + +config HOST_OPENSC + tristate + # libz is disabled, but it still links against libz + # it links against libdl + select HOST_OPENSSL + default ALLYES + help + https://github.com/OpenSC/OpenSC/wiki diff --git a/rules/host-opensc.make b/rules/host-opensc.make new file mode 100644 index 000000000..8571c5750 --- /dev/null +++ b/rules/host-opensc.make @@ -0,0 +1,57 @@ +# -*-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_OPENSC) += host-opensc + +# +# Paths and names +# +HOST_OPENSC_VERSION := 0.19.0 +HOST_OPENSC_MD5 := 40734b2343cf83c62c4c403f8a37475e +HOST_OPENSC := opensc-$(HOST_OPENSC_VERSION) +HOST_OPENSC_SUFFIX := tar.gz +HOST_OPENSC_URL := https://github.com/OpenSC/OpenSC/releases/download/0.19.0/$(HOST_OPENSC).$(HOST_OPENSC_SUFFIX) +HOST_OPENSC_SOURCE := $(SRCDIR)/$(HOST_OPENSC).$(HOST_OPENSC_SUFFIX) +HOST_OPENSC_DIR := $(HOST_BUILDDIR)/$(HOST_OPENSC) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +HOST_OPENSC_CONF_TOOL := autoconf +HOST_OPENSC_CONF_OPT := \ + $(HOST_AUTOCONF) \ + --sysconfdir=/etc/opensc \ + --disable-zlib \ + --disable-readline \ + --enable-openssl \ + --disable-openpace \ + --disable-openct \ + --disable-pcsc \ + --disable-cryptotokenkit \ + --enable-ctapi \ + --disable-minidriver \ + --enable-sm \ + --disable-man \ + --disable-doc \ + --disable-dnie-ui \ + --disable-notify \ + --enable-tests=no \ + --disable-static + +HOST_OPENSC_CPPFLAGS := -Wno-implicit-fallthrough + +# vim: syntax=make |