From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gRBXA-0000Yt-Py for ptxdist@pengutronix.de; Mon, 26 Nov 2018 08:42:20 +0100 Received: from mgr by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gRBXA-0001fd-HQ for ptxdist@pengutronix.de; Mon, 26 Nov 2018 08:42:20 +0100 Date: Mon, 26 Nov 2018 08:42:20 +0100 From: Michael Grzeschik Message-ID: <20181126074220.m44q4uz5xh3e2yk4@pengutronix.de> References: <20181123171226.8025-1-m.grzeschik@pengutronix.de> <20181126052546.b3vofaw6hk3ri3gj@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20181126052546.b3vofaw6hk3ri3gj@pengutronix.de> Subject: Re: [ptxdist] [PATCH] libkcapi: add new rule List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0212640548==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============0212640548== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mjfhhy5ir7bw4tfr" Content-Disposition: inline --mjfhhy5ir7bw4tfr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 26, 2018 at 06:25:46AM +0100, Michael Olbrich wrote: > On Fri, Nov 23, 2018 at 06:12:26PM +0100, Michael Grzeschik wrote: > > Add the libkcapi package and include options to enable tests and install > > AF_ALG based hashing functins. > >=20 > > Signed-off-by: Michael Grzeschik >=20 > This fails to build because configure is missing. I will add the missing autogen.sh link in the patches dir. > > --- > > rules/libkcapi.in | 58 +++++++++++++++++++++ > > rules/libkcapi.make | 121 ++++++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 179 insertions(+) > > create mode 100644 rules/libkcapi.in > > create mode 100644 rules/libkcapi.make > >=20 > > diff --git a/rules/libkcapi.in b/rules/libkcapi.in > > new file mode 100644 > > index 000000000..c7474d61e > > --- /dev/null > > +++ b/rules/libkcapi.in > > @@ -0,0 +1,58 @@ > > +## SECTION=3Dproject_specific > > + > > +menuconfig LIBKCAPI > > + tristate > > + prompt "libkcapi" > > + help > > + The Linux kernel exports a Netlink interface of type AF_ALG to > > + allow user space to utilize the kernel crypto API. > > + > > +if LIBKCAPI > > + > > +config LIBKCAPI_MD5SUM > > + bool > > + depends on !COREUTILS_MD5SUM > > + depends on !BUSYBOX_MD5SUM > > + prompt "md5sum" > > + help > > + support md5sum cmdline util > > + > > +config LIBKCAPI_SHA1SUM > > + bool > > + depends on !COREUTILS_SHA1SUM > > + depends on !BUSYBOX_SHA1SUM > > + prompt "sha1sum" > > + help > > + support sha1sum cmdline util > > + > > +config LIBKCAPI_SHA256SUM > > + bool > > + depends on !COREUTILS_SHA256SUM > > + depends on !BUSYBOX_SHA256SUM > > + prompt "sha256sum" > > + help > > + support sha256sum cmdline util > > + > > +config LIBKCAPI_SHA384SUM > > + bool > > + depends on !COREUTILS_SHA384SUM > > + prompt "sha384sum" > > + help > > + support sha384sum cmdline util > > + > > +config LIBKCAPI_SHA512SUM > > + bool > > + depends on !COREUTILS_SHA512SUM > > + depends on !BUSYBOX_SHA512SUM > > + prompt "sha512sum" > > + help > > + support sha512sum cmdline util > > + > > +config LIBKCAPI_TEST > > + bool > > + depends on OPENSSL_BIN > > + prompt "test" > > + help > > + support kcapi tests > > + > > +endif > > diff --git a/rules/libkcapi.make b/rules/libkcapi.make > > new file mode 100644 > > index 000000000..d8a8b88d4 > > --- /dev/null > > +++ b/rules/libkcapi.make > > @@ -0,0 +1,121 @@ > > +# -*-makefile-*- > > +# > > +# Copyright (C) 2018 by Michael Grzeschik > > +# > > +# See CREDITS for details about who has contributed to this project. > > +# > > +# For further information about the PTXdist project and license condit= ions > > +# see the README file. > > +# > > + > > +# > > +# We provide this package > > +# > > +PACKAGES-$(PTXCONF_LIBKCAPI) +=3D libkcapi > > + > > +# > > +# Paths and names > > +# > > +LIBKCAPI_VERSION :=3D 1.1.3 > > +LIBKCAPI_MD5 :=3D 480b78de9fe7f3f64ca7622396499e5f > > +LIBKCAPI :=3D libkcapi-$(LIBKCAPI_VERSION) > > +LIBKCAPI_SUFFIX :=3D tar.xz > > +LIBKCAPI_URL :=3D http://www.chronox.de/libkcapi//$(LIBKCAPI).$(LIBKC= API_SUFFIX) > > +LIBKCAPI_SOURCE :=3D $(SRCDIR)/$(LIBKCAPI).$(LIBKCAPI_SUFFIX) > > +LIBKCAPI_DIR :=3D $(BUILDDIR)/$(LIBKCAPI) > > +LIBKCAPI_LICENSE :=3D GPLv2+ > > + > > +# --------------------------------------------------------------------= -------- > > +# Prepare > > +# --------------------------------------------------------------------= -------- > > + > > +LIBKCAPI_CONF_ENV :=3D \ > > + $(CROSS_ENV) \ > > + ac_cv_path_XMLTO=3D > > + > > +# > > +# autoconf > > +# > > +LIBKCAPI_CONF_TOOL :=3D autoconf > > +LIBKCAPI_CONF_OPT :=3D \ > > + $(CROSS_AUTOCONF_USR) \ > > + --enable-kcapi-hasher \ > > + --enable-kcapi-rngapp \ > > + --enable-kcapi-speed \ > > + --$(call ptx/endis, PTXCONF_LIBKCAPI_TEST)-kcapi-test \ > > + --enable-kcapi-encapp \ > > + --enable-kcapi-dgstapp \ > > + --disable-lib-asym \ > > + --disable-lib-kpp > > + > > +# --------------------------------------------------------------------= -------- > > +# Target-Install > > +# --------------------------------------------------------------------= -------- > > + > > +$(STATEDIR)/libkcapi.targetinstall: > > + @$(call targetinfo) > > + > > + @$(call install_init, libkcapi) > > + @$(call install_fixup, libkcapi,PRIORITY,optional) > > + @$(call install_fixup, libkcapi,SECTION,base) > > + @$(call install_fixup, libkcapi,AUTHOR,"Michael Grzeschik ") > > + @$(call install_fixup, libkcapi,DESCRIPTION,missing) > > + > > + @$(call install_lib, libkcapi, 0, 0, 0644, libkcapi); > > + > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/bin/kcapi-rng); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/bin/kcapi-speed); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/bin/kcapi-enc); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/bin/kcapi-dgst); > > + > > + @$(call install_copy, libkcapi, 0, 0, 0755, $(LIBKCAPI_PKGDIR)/usr/bi= n/fipscheck, /usr/bin/kcapi-hasher); > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/fipsc= heck); > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/fipsh= mac); > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha1h= mac); > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha22= 4hmac); > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha25= 6hmac); > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha38= 4hmac); > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha51= 2hmac); > > + > > +#ifdef PTXCONF_LIBKCAPI_MD5SUM > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/md5su= m); > > +#endif > > + > > +#ifdef PTXCONF_LIBKCAPI_SHA1SUM > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha1s= um); > > +#endif > > + > > +#ifdef PTXCONF_LIBKCAPI_SHA256SUM > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha25= 6sum); > > +#endif > > + > > +#ifdef PTXCONF_LIBKCAPI_SHA384SUM > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha38= 4sum); > > +#endif > > + > > +#ifdef PTXCONF_LIBKCAPI_SHA512SUM > > + @$(call install_link, libkcapi, /usr/bin/kcapi-hasher, /usr/bin/sha51= 2sum); > > +#endif > > + > > +#ifdef PTXCONF_LIBKCAPI_TEST > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi-enc-test-large); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi-convenience); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= libtest.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= test.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi-enc-test.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi-enc-test-large.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi-dgst-test.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi-convenience.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= kcapi-fuzz-test.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= hasher-test.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= compile-test.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= virttest.sh); > > + @$(call install_copy, libkcapi, 0, 0, 0755, -, /usr/libexec/libkcapi/= test-invocation.sh); >=20 > Maybe use install_tree here? We just want to install any existing tests > here. Nobody is going to check if all tests are installed in new versions > unless it breaks. Good point. I will use install_tree. > Michael >=20 > > +#endif > > + > > + @$(call install_finish, libkcapi) > > + > > + @$(call touch) > > + > > +# vim: syntax=3Dmake > > --=20 > > 2.19.1 > >=20 > >=20 > > _______________________________________________ > > ptxdist mailing list > > ptxdist@pengutronix.de >=20 > --=20 > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | >=20 > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de --=20 Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --mjfhhy5ir7bw4tfr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEElXvEUs6VPX6mDPT8C+njFXoeLGQFAlv7o9wACgkQC+njFXoe LGTTIg/+Mc3NnUONYIQjFmxhqD4dNlg6ezhk6mYD9eXczLQdninwAdEMS7Ze4t3V PFJPvy3EgutZJy6gp9PUg91ede4LUHQGZiSU9XbTBw/3sOpVNp9hYdxKf2Mq7T30 pnDDDHSCHDixKebelI8xNQLEJLVympYrbzdsPPZzVLnJ77gaJ6XAM+qdOr6AEb8z wLBSWM3VedNACFk3pESpK7CxRzsG7rlkRtS4yJAPRhRGcH22k7ehX5kmIBDmOGY9 +DBQi6y/39LL5Fc//uDpY6GCyPOwcg4Un7MF8hGVtS7AkFxmtGyUkKcGKnhuA4rK DGLRIdtKSKcTrArhw3qbpwW2sy/ijml03c8ICykYaM+HEBQzVZUOR+i7P6zLdjis LFGI/MUezdfPPWNiCfeuysW+dNZcLKHaZKBJn3KT2fxqQoOhaV0JrDBQYul2MTx2 i3Vgrjb1eKU+dpVQw2NN2ZmJKHvT4GlvlcgCa788lssPvbxZd15nBqZAXzYY95rM NP3eymkl8S6Vtr1o9NMFjxEvnGryyitxHvi6CcCJY9Kg3y/lidY06jZjcgr3hCTu Mx/WD2gzlq0FmTQEX4LJKCsDXqJ/ex60j4rSRSbTGHwSJZefIM8WI3MK5NWD+Mdt PYN9N+PyxkYU8GyVGhVw4Y7OQb/QGOOzod0mLqunzIRVNemj4Hk= =0gnp -----END PGP SIGNATURE----- --mjfhhy5ir7bw4tfr-- --===============0212640548== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0212640548==--