Add build glue: no pkcs11 yes. trunk
authorchristos <christos@NetBSD.org>
Sat, 28 Jan 2012 16:04:12 +0000
branchtrunk
changeset 208576 97c7df39ce69
parent 208575 12fa366ab18d
child 208577 647509d897ef
Add build glue: no pkcs11 yes.
crypto/external/cpl/tpm-tools/Makefile
crypto/external/cpl/tpm-tools/Makefile.inc
crypto/external/cpl/tpm-tools/bin/Makefile
crypto/external/cpl/tpm-tools/bin/Makefile.inc
crypto/external/cpl/tpm-tools/bin/Makefile.prog
crypto/external/cpl/tpm-tools/bin/tpm_changeownerauth/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_clear/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_createek/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_getpubek/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_nvdefine/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_nvinfo/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_nvread/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_nvrelease/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_nvwrite/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_resetdalock/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_restrictpubek/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_restrictsrk/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_revokeek/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_sealdata/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_selftest/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_setactive/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_setclearable/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_setenable/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_setoperatorauth/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_setownable/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_setpresence/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_takeownership/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_unsealdata/Makefile
crypto/external/cpl/tpm-tools/bin/tpm_version/Makefile
crypto/external/cpl/tpm-tools/lib/Makefile
crypto/external/cpl/tpm-tools/lib/Makefile.inc
crypto/external/cpl/tpm-tools/lib/libtpm_unseal/Makefile
crypto/external/cpl/tpm-tools/lib/libtpm_utils/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/Makefile.inc	Sat Jan 28 16:04:12 2012 +0000
@@ -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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/Makefile.inc	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: Makefile.inc,v 1.1 2012/01/28 16:04:12 christos Exp $
+.include "../Makefile.inc"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/Makefile.prog	Sat Jan 28 16:04:12 2012 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_changeownerauth/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_clear/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_createek/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_getpubek/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_nvdefine/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_nvinfo/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_nvread/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_nvrelease/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_nvwrite/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_resetdalock/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_restrictpubek/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_restrictsrk/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_revokeek/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_sealdata/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_selftest/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_setactive/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_setclearable/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_setenable/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_setoperatorauth/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_setownable/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_setpresence/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_takeownership/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_unsealdata/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/bin/tpm_version/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,1 @@
+.include "../Makefile.prog"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/lib/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/lib/Makefile.inc	Sat Jan 28 16:04:12 2012 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: Makefile.inc,v 1.1 2012/01/28 16:04:15 christos Exp $
+.include "../Makefile.inc"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/lib/libtpm_unseal/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -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>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/tpm-tools/lib/libtpm_utils/Makefile	Sat Jan 28 16:04:12 2012 +0000
@@ -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>