Skip to content

Commit 9aad079

Browse files
rizlikdanielinux
authored andcommitted
tools/tpm: add policy_sign tool
The tool is based on the code from wolfTPM/examples/pcr/policy_sign.c
1 parent bf6e81b commit 9aad079

2 files changed

Lines changed: 400 additions & 1 deletion

File tree

tools/tpm/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ vpath %.c ./
7676

7777
.PHONY: clean all
7878

79-
all: rot policy_create pcr_extend pcr_read pcr_reset
79+
all: rot policy_create pcr_extend pcr_read pcr_reset policy_sign
8080

8181
debug: CFLAGS+=$(DEBUG_FLAGS)
8282
debug: all
@@ -105,6 +105,10 @@ policy_create: $(OBJS_VIRT) policy_create.o
105105
@echo "Building Policy Creation Tool"
106106
$(Q)$(LD) -o $@ $@.o $(OBJS_VIRT) $(LDFLAGS)
107107

108+
policy_sign: $(OBJS_VIRT) policy_sign.o
109+
@echo "Building Policy Sign Tool"
110+
$(Q)$(LD) -o $@ $@.o $(OBJS_VIRT) $(LDFLAGS)
111+
108112
pcr_extend: $(OBJS_VIRT) $(WOLFTPMDIR)/examples/pcr/extend.o
109113
@echo "Building PCR Extend Tool"
110114
$(Q)$(LD) -o $@ $(WOLFTPMDIR)/examples/pcr/extend.o $(OBJS_VIRT) $(LDFLAGS)

0 commit comments

Comments
 (0)