Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/cpl/tpm-tools Add build glue: no pkcs11 yes.



details:   https://anonhg.NetBSD.org/src/rev/6b4a0484e4d0
branches:  trunk
changeset: 773137:6b4a0484e4d0
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 28 16:04:12 2012 +0000

description:
Add build glue: no pkcs11 yes.

diffstat:

 crypto/external/cpl/tpm-tools/Makefile                         |   3 +
 crypto/external/cpl/tpm-tools/Makefile.inc                     |   9 +
 crypto/external/cpl/tpm-tools/bin/Makefile                     |  33 +++++
 crypto/external/cpl/tpm-tools/bin/Makefile.inc                 |   2 +
 crypto/external/cpl/tpm-tools/bin/Makefile.prog                |  56 ++++++++++
 crypto/external/cpl/tpm-tools/bin/tpm_changeownerauth/Makefile |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_clear/Makefile           |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_createek/Makefile        |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_getpubek/Makefile        |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_nvdefine/Makefile        |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_nvinfo/Makefile          |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_nvread/Makefile          |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_nvrelease/Makefile       |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_nvwrite/Makefile         |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_resetdalock/Makefile     |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_restrictpubek/Makefile   |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_restrictsrk/Makefile     |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_revokeek/Makefile        |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_sealdata/Makefile        |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_selftest/Makefile        |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_setactive/Makefile       |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_setclearable/Makefile    |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_setenable/Makefile       |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_setoperatorauth/Makefile |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_setownable/Makefile      |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_setpresence/Makefile     |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_takeownership/Makefile   |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_unsealdata/Makefile      |   1 +
 crypto/external/cpl/tpm-tools/bin/tpm_version/Makefile         |   1 +
 crypto/external/cpl/tpm-tools/lib/Makefile                     |   3 +
 crypto/external/cpl/tpm-tools/lib/Makefile.inc                 |   2 +
 crypto/external/cpl/tpm-tools/lib/libtpm_unseal/Makefile       |  16 ++
 crypto/external/cpl/tpm-tools/lib/libtpm_utils/Makefile        |  15 ++
 33 files changed, 163 insertions(+), 0 deletions(-)

diffs (295 lines):

diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/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>
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/Makefile.inc
--- /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
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/Makefile
--- /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>
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/Makefile.inc
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/Makefile.prog
--- /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>
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_changeownerauth/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_clear/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_createek/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_getpubek/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_nvdefine/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_nvinfo/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_nvread/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_nvrelease/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_nvwrite/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_resetdalock/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_restrictpubek/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_restrictsrk/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_revokeek/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_sealdata/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_selftest/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_setactive/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_setclearable/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_setenable/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_setoperatorauth/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_setownable/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_setpresence/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_takeownership/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_unsealdata/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/bin/tpm_version/Makefile
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/lib/Makefile
--- /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>
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/lib/Makefile.inc
--- /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"
diff -r f4f2b00c9058 -r 6b4a0484e4d0 crypto/external/cpl/tpm-tools/lib/libtpm_unseal/Makefile
--- /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>
diff -r f4f2b00c9058 -r 6b4a0484e4d0 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/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>



Home | Main Index | Thread Index | Old Index