Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: utility/Makefile

Issue 2919010: Add tpm lite to vboot reference (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/tpm_lite/writelimit.c ('k') | utility/tlcl_generator.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/Makefile
diff --git a/utility/Makefile b/utility/Makefile
index cc3f5513f2deb61127a8a7c9bca613b88194a55b..a0f9d3612874d59747341ef99274c284608b98b2 100644
--- a/utility/Makefile
+++ b/utility/Makefile
@@ -6,6 +6,7 @@ INCLUDES += -I./include \
-I$(FWDIR)/lib/include \
-I$(FWDIR)/lib/cgptlib/include \
-I$(FWDIR)/lib/cryptolib/include \
+ -I$(FWDIR)/lib/tpm_lite/include \
-I$(HOSTDIR)/include
CFLAGS += $(INCLUDES)
CFLAGS += -MMD -MF $@.d
@@ -20,6 +21,7 @@ TARGET_NAMES = dumpRSAPublicKey \
gbb_utility \
load_kernel_test \
signature_digest_utility \
+ tlcl_generator \
vbutil_firmware \
vbutil_kernel \
vbutil_key \
@@ -46,6 +48,9 @@ ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS)
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
+${BUILD_ROOT}/tlcl_generator: tlcl_generator.c $(LIBS)
+ $(CC) $(CFLAGS) $(INCLUDES) -fpack-struct $< -o $@ $(LIBS) -lcrypto
+
${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS)
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
@@ -69,4 +74,13 @@ install: $(TARGET_BINS)
cp -f $(TARGET_BINS) $(DESTDIR)
chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
+STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
+STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
+
+update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
+ ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
+ cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
+ ( echo "%% Updating structures.h %%" && \
+ cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
+
-include ${ALL_DEPS}
« no previous file with comments | « tests/tpm_lite/writelimit.c ('k') | utility/tlcl_generator.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698