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

Side by Side Diff: utility/Makefile

Issue 3077016: Small program to temporary fix TPM state until we can do this in the BIOS. (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 | « tests/tpm_lite/startup.c ('k') | utility/tpm_init_temp_fix.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 vbutil_firmware \ 26 vbutil_firmware \
26 vbutil_kernel \ 27 vbutil_kernel \
27 vbutil_key \ 28 vbutil_key \
28 vbutil_keyblock \ 29 vbutil_keyblock \
29 verify_data 30 verify_data
30 31
31 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 32 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
32 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 33 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
33 34
34 all: $(TARGET_BINS) 35 all: $(TARGET_BINS)
(...skipping 27 matching lines...) Expand all
62 63
63 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS) 64 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS)
64 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 65 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
65 66
66 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS) 67 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS)
67 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 68 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
68 69
69 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) 70 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS)
70 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 71 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
71 72
73 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS)
74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
75
72 install: $(TARGET_BINS) 76 install: $(TARGET_BINS)
73 mkdir -p $(DESTDIR) 77 mkdir -p $(DESTDIR)
74 cp -f $(TARGET_BINS) $(DESTDIR) 78 cp -f $(TARGET_BINS) $(DESTDIR)
75 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 79 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
76 80
77 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 81 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
78 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 82 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
79 83
80 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 84 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
81 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 85 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
82 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 86 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
83 ( echo "%% Updating structures.h %%" && \ 87 ( echo "%% Updating structures.h %%" && \
84 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 88 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
85 89
86 -include ${ALL_DEPS} 90 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « tests/tpm_lite/startup.c ('k') | utility/tpm_init_temp_fix.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698