libfido2: new recipe

libfido2 adds support for FIDO2 authenticators. It's required for
OpenSSH to support FIDO backed keys, which I intend to add optional
support for in oe-core.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Dan McGregor 2024-04-05 11:00:32 -06:00 committed by Khem Raj
parent 5cfc85d2cf
commit 268d27a4f1
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -0,0 +1,25 @@
SUMMARY = "FIDO 2.0 support library"
DESCRIPTION = "libfido2 provides library functionality and command-line tools to \
communicate with a FIDO device over USB, and to verify attestation and \
assertion signatures."
HOMEPAGE = "https://developers.yubico.com/libfido2"
LICENSE = "BSD-2-Clause"
SECTION = "libs/network"
DEPENDS = "libcbor openssl zlib udev"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5f14cb32bdf2b87063e0a2d20c4178d0"
SRC_URI = "https://developers.yubico.com/${BPN}/Releases/${BPN}-${PV}.tar.gz"
SRC_URI[sha256sum] = "3601792e320032d428002c4cce8499a4c7b803319051a25a0c9f1f138ffee45a"
inherit cmake pkgconfig manpages
PACKAGECONFIG[manpages] = "-DBUILD_MANPAGES:BOOL=ON,-DBUILD_MANPAGES:BOOL=OFF"
EXTRA_OECMAKE = "-DUDEV_RULES_DIR=${nonarch_base_libdir}/udev/rules.d -DBUILD_EXAMPLES:BOOL=OFF"
PACKAGE_BEFORE_PN = "${PN}-tools"
FILES:${PN}-tools = "${bindir}/fido2-*"
BBCLASSEXTEND = "native nativesdk"