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

Side by Side Diff: utility/Makefile

Issue 3149001: Command-line utility to execute TPM commands bypassing the TSS stack. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: . Created 10 years, 4 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 unified diff | Download patch
« no previous file with comments | « firmware/version.c ('k') | utility/tpmc.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 INCLUDES += -I./include \ 5 INCLUDES += -I./include \
6 -I$(FWDIR)/lib/include \ 6 -I$(FWDIR)/lib/include \
7 -I$(FWDIR)/lib/cgptlib/include \ 7 -I$(FWDIR)/lib/cgptlib/include \
8 -I$(FWDIR)/lib/cryptolib/include \ 8 -I$(FWDIR)/lib/cryptolib/include \
9 -I$(FWDIR)/lib/tpm_lite/include \ 9 -I$(FWDIR)/lib/tpm_lite/include \
10 -I$(HOSTDIR)/include 10 -I$(HOSTDIR)/include
11 CFLAGS += $(INCLUDES) 11 CFLAGS += $(INCLUDES)
12 CFLAGS += -MMD -MF $@.d 12 CFLAGS += -MMD -MF $@.d
13 LIBS = $(HOSTLIB) $(FWLIB) 13 LIBS = $(HOSTLIB) $(FWLIB)
14 14
15 BUILD_ROOT = ${BUILD}/utility 15 BUILD_ROOT = ${BUILD}/utility
16 16
17 DESTDIR ?= /usr/bin 17 DESTDIR ?= /usr/bin
18 18
19 TARGET_NAMES = dumpRSAPublicKey \ 19 TARGET_NAMES = dumpRSAPublicKey \
20 dump_kernel_config \ 20 dump_kernel_config \
21 gbb_utility \ 21 gbb_utility \
22 load_kernel_test \ 22 load_kernel_test \
23 signature_digest_utility \ 23 signature_digest_utility \
24 tlcl_generator \ 24 tlcl_generator \
25 tpm_init_temp_fix \ 25 tpm_init_temp_fix \
26 tpmc \
26 vbutil_firmware \ 27 vbutil_firmware \
27 vbutil_kernel \ 28 vbutil_kernel \
28 vbutil_key \ 29 vbutil_key \
29 vbutil_keyblock \ 30 vbutil_keyblock \
30 verify_data \ 31 verify_data \
31 dev_make_keypair 32 dev_make_keypair
32 33
33 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 34 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
34 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 35 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
35 36
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 71
71 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) 72 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS)
72 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 73 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
73 74
74 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS) 75 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS)
75 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) 76 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
76 77
77 ${BUILD_ROOT}/dev_make_keypair: dev_make_keypair 78 ${BUILD_ROOT}/dev_make_keypair: dev_make_keypair
78 cp -f $< $@ 79 cp -f $< $@
79 80
81 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS)
82 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
83
80 install: $(TARGET_BINS) 84 install: $(TARGET_BINS)
81 mkdir -p $(DESTDIR) 85 mkdir -p $(DESTDIR)
82 cp -f $(TARGET_BINS) $(DESTDIR) 86 cp -f $(TARGET_BINS) $(DESTDIR)
83 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 87 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
84 88
85 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 89 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
86 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 90 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
87 91
88 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 92 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
89 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 93 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
90 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 94 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
91 ( echo "%% Updating structures.h %%" && \ 95 ( echo "%% Updating structures.h %%" && \
92 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 96 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
93 97
94 -include ${ALL_DEPS} 98 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « firmware/version.c ('k') | utility/tpmc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698