summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorChe-liang Chiou <clchiou@chromium.org>2013-02-28 09:34:57 +0000
committerSimon Glass <sjg@chromium.org>2013-04-12 14:13:13 -0700
commit8732b0700d21588b4954d0f1b182f4c60725d228 (patch)
treeb5c693899b28ac13789e8957114b12af4d946769 /lib/Makefile
parentc1af608f6f22d58ec27b1f6ba9841d1baf12cc98 (diff)
downloadblackbird-obmc-uboot-8732b0700d21588b4954d0f1b182f4c60725d228.tar.gz
blackbird-obmc-uboot-8732b0700d21588b4954d0f1b182f4c60725d228.zip
tpm: Add TPM command library
TPM command library implements a subset of TPM commands defined in TCG Main Specification 1.2 that are useful for implementing secure boot. More TPM commands could be added out of necessity. You may exercise these commands through the 'tpm' command. However, the raw TPM commands are too primitive for writing secure boot in command interpreter scripts; so the 'tpm' command also provides helper functions to make scripting easier. For example, to define a counter in TPM non-volatile storage and initialize it to zero: $ tpm init $ tpm startup TPM_ST_CLEAR $ tpm nv_define d 0x1001 0x1 $ tpm nv_write d 0x1001 0 And then increment the counter by one: $ tpm nv_read d 0x1001 i $ setexpr.l i $i + 1 $ tpm nv_write d 0x1001 $i Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 1bfd3ee124..d57775d7c4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -54,6 +54,7 @@ COBJS-y += qsort.o
COBJS-$(CONFIG_SHA1) += sha1.o
COBJS-$(CONFIG_SHA256) += sha256.o
COBJS-y += strmhz.o
+COBJS-$(CONFIG_TPM) += tpm.o
COBJS-$(CONFIG_RBTREE) += rbtree.o
endif
OpenPOWER on IntegriCloud