Add build glue: no pkcs11 yes.
This commit is contained in:
parent
a3508f9e3b
commit
5936836493
|
@ -0,0 +1,3 @@
|
|||
# $NetBSD: Makefile,v 1.1 2012/01/28 16:04:12 christos Exp $
|
||||
SUBDIR=lib .WAIT bin
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,9 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2012/01/28 16:04:12 christos Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
TPM_TOOLS=${NETBSDSRCDIR}/crypto/external/cpl/tpm-tools
|
||||
DIST=${TPM_TOOLS}/dist
|
||||
|
||||
CPPFLAGS+= -I${TPM_TOOLS}/include -I${DIST}/include
|
||||
CPPFLAGS+= -DHAVE_CONFIG_H -D_LINUX -DTSS_LIB_IS_12
|
|
@ -0,0 +1,33 @@
|
|||
# $NetBSD: Makefile,v 1.1 2012/01/28 16:04:12 christos Exp $
|
||||
.include <bsd.own.mk>
|
||||
SUBDIR = ${TPM_MGMT} ${CMDS}
|
||||
|
||||
TPM_MGMT=\
|
||||
tpm_changeownerauth \
|
||||
tpm_clear \
|
||||
tpm_createek \
|
||||
tpm_getpubek \
|
||||
tpm_restrictpubek \
|
||||
tpm_setactive \
|
||||
tpm_setenable \
|
||||
tpm_setclearable \
|
||||
tpm_setownable \
|
||||
tpm_setpresence \
|
||||
tpm_takeownership \
|
||||
tpm_version \
|
||||
tpm_selftest \
|
||||
tpm_nvdefine \
|
||||
tpm_nvinfo \
|
||||
tpm_nvread \
|
||||
tpm_nvrelease \
|
||||
tpm_nvwrite \
|
||||
tpm_resetdalock \
|
||||
tpm_restrictsrk \
|
||||
tpm_revokeek \
|
||||
tpm_setoperatorauth
|
||||
|
||||
CMDS=\
|
||||
tpm_sealdata \
|
||||
tpm_unsealdata
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,2 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2012/01/28 16:04:12 christos Exp $
|
||||
.include "../Makefile.inc"
|
|
@ -0,0 +1,56 @@
|
|||
# $NetBSD: Makefile.prog,v 1.1 2012/01/28 16:04:12 christos Exp $
|
||||
.include "../Makefile.inc"
|
||||
|
||||
PROG=${.CURDIR:T}
|
||||
.if "${PROG:M*sealdata}" != ""
|
||||
.PATH.c: ${DIST}/src/cmds
|
||||
.else
|
||||
.PATH.c: ${DIST}/src/tpm_mgmt
|
||||
.endif
|
||||
|
||||
.if "${PROG:Mtpm_nv*}" != ""
|
||||
SRCS=${PROG}.c tpm_nvcommon.c
|
||||
.elif ${PROG} == "tpm_setoperatorauth"
|
||||
.elif ${PROG} == "tpm_changeownerauth"
|
||||
SRCS=tpm_changeauth.c
|
||||
.elif ${PROG} == "tpm_setpresence"
|
||||
SRCS=tpm_present.c
|
||||
.elif ${PROG} == "tpm_setactive"
|
||||
SRCS=tpm_activate.c
|
||||
.elif ${PROG:Mtpm_set*} != ""
|
||||
SRCS=${PROG:S/set//}.c
|
||||
.endif
|
||||
|
||||
LIBTPMUTILSOBJDIR!= cd ${.CURDIR}/../../lib/libtpm_utils && ${PRINTOBJDIR}
|
||||
|
||||
.if ${PROG} == "tpm_unsealdata"
|
||||
DPADD+=${LIBTPM_UNSEAL}
|
||||
LDADD+=-ltpm_unseal
|
||||
.endif
|
||||
DPADD+=${LIBTSPI}
|
||||
LDADD+=-L${LIBTPMUTILSOBJDIR} -ltpm_utils -ltspi
|
||||
|
||||
.if ${PROG} != "tpm_version" && ${PROG:M*sealdata} == ""
|
||||
BINDIR=/usr/sbin
|
||||
.if ${PROG} != "tpm_restrictsrk"
|
||||
.SUFFIXES: .8
|
||||
.PATH.8: ${DIST}/man/man8
|
||||
MAN+=${PROG}.8
|
||||
.else
|
||||
NOMAN=yes
|
||||
MAN=
|
||||
#MLINKS+=tpm_restrictpubek.8 tpm_restrictsrk.8
|
||||
.endif
|
||||
.else
|
||||
BINDIR=/usr/bin
|
||||
.if ${PROG} != "tpm_unsealdata"
|
||||
.SUFFIXES: .1
|
||||
.PATH.1: ${DIST}/man/man1
|
||||
MAN+=${PROG}.1
|
||||
.else
|
||||
NOMAN=yes
|
||||
MAN=
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.prog"
|
|
@ -0,0 +1,3 @@
|
|||
# $NetBSD: Makefile,v 1.1 2012/01/28 16:04:15 christos Exp $
|
||||
SUBDIR = libtpm_utils libtpm_unseal
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,2 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2012/01/28 16:04:15 christos Exp $
|
||||
.include "../Makefile.inc"
|
|
@ -0,0 +1,16 @@
|
|||
# $NetBSD: Makefile,v 1.1 2012/01/28 16:04:15 christos Exp $
|
||||
.include "../Makefile.inc"
|
||||
|
||||
.PATH.c: ${DIST}/lib
|
||||
|
||||
LIB=tpm_unseal
|
||||
SRCS= \
|
||||
tpm_unseal.c
|
||||
|
||||
SHLIB_MAJOR=1
|
||||
SHLIB_MINOR=0
|
||||
|
||||
LDADD+=-ltspi
|
||||
DPADD+=${LIBTSPI}
|
||||
|
||||
.include <bsd.lib.mk>
|
|
@ -0,0 +1,15 @@
|
|||
# $NetBSD: Makefile,v 1.1 2012/01/28 16:04:15 christos Exp $
|
||||
|
||||
LIBISPRIVATE=yes
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
.PATH.c: ${DIST}/lib
|
||||
|
||||
LIB=tpm_utils
|
||||
SRCS= \
|
||||
tpm_log.c \
|
||||
tpm_tspi.c \
|
||||
tpm_utils.c
|
||||
|
||||
.include <bsd.lib.mk>
|
Loading…
Reference in New Issue