Avoid building libfido2 if WITHOUT_USB

libfido2 requires USB, so disable it if not available.

Reported by:	peterj
Fixes:		7b1e19ad78 ("Add libfido2 to the build")
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2021-10-26 17:15:54 -04:00
parent 48cb3fee25
commit 93942379cc

View File

@ -215,7 +215,7 @@ SUBDIR.${MK_BHYVE}+= libvmmapi
.if ${MACHINE_ARCH} != "powerpc"
SUBDIR.${MK_OPENMP}+= libomp
.endif
.if !defined(COMPAT_32BIT)
.if !defined(COMPAT_32BIT) && ${MK_USB} != "no"
SUBDIR.${MK_OPENSSH}+= libcbor libfido2
.endif
SUBDIR.${MK_OPENSSL}+= libmp