]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add libcbor to the build
authorEd Maste <emaste@FreeBSD.org>
Thu, 7 Oct 2021 00:42:40 +0000 (20:42 -0400)
committerEd Maste <emaste@FreeBSD.org>
Fri, 15 Oct 2021 19:10:24 +0000 (15:10 -0400)
commit2e85df652caef859c532b7e1e8a178c75f1a4a92
tree0bc9ba211f0e6c91543b0035c00b6d8bff54d4cc
parent67829b6307b8c81397cedaaf7a0e6e281560be32
Add libcbor to the build

From https://github.com/PJK/libcbor:

    libcbor is a C library for parsing and generating CBOR, the general-
    purpose schema-less binary data format.

libcbor will be used by ssh to support FIDO/U2F keys.  It is currently
intended only for use by ssh, and so is installed as a PRIVATELIB and is
placed in the ssh pkgbase package.

cbor_export.h and configuration.h were generated by the upstream CMake
build.  We could create them with bmake rules instead (as NetBSD has
done) but this is a fine start.

This is currently disabled for the 32-bit library build as libfido2 is
not compatible with the COMPAT_32BIT hack in usb_ioctl.h, and there is
no need for libcbor without libfido2.

Reviewed by: kevans
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32347
lib/Makefile
lib/libcbor/Makefile [new file with mode: 0644]
lib/libcbor/cbor/cbor_export.h [new file with mode: 0644]
lib/libcbor/cbor/configuration.h [new file with mode: 0644]
share/mk/src.libnames.mk
tools/build/mk/OptionalObsoleteFiles.inc