swtpm/swtpm-tpm-tools-path.patch
2019-12-13 17:12:18 +00:00

14 lines
581 B
Diff

Index: swtpm-0.1.0-tpm2/configure.ac
===================================================================
--- swtpm-0.1.0-tpm2.orig/configure.ac
+++ swtpm-0.1.0-tpm2/configure.ac
@@ -160,7 +160,7 @@ AC_SUBST([LIBTPMS_LIBS])
AC_CHECK_LIB(c, clock_gettime, LIBRT_LIBS="", LIBRT_LIBS="-lrt")
AC_SUBST([LIBRT_LIBS])
-AC_PATH_PROG([TPM_NVDEFINE], tpm_nvdefine)
+AC_PATH_PROG([TPM_NVDEFINE], tpm_nvdefine, path = '/usr/sbin/')
if test "x$TPM_NVDEFINE" = "x"; then
have_tcsd=no
AC_MSG_WARN([NVRAM area tools are needed for TPM 1.2 certificate injection: tpm-tools package])