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

Side by Side Diff: utility/Makefile

Issue 6465018: Add load_firmware_test utility program (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Code review & remove tabs Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2011 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) 13 LIBS = $(HOSTLIB)
14 HOSTCC = cc 14 HOSTCC = cc
15 15
16 BUILD_ROOT = ${BUILD}/utility 16 BUILD_ROOT = ${BUILD}/utility
17 17
18 DESTDIR ?= /usr/bin 18 DESTDIR ?= /usr/bin
19 19
20 TARGET_NAMES = crossystem \ 20 TARGET_NAMES = crossystem \
21 dumpRSAPublicKey \ 21 dumpRSAPublicKey \
22 dump_kernel_config \ 22 dump_kernel_config \
23 gbb_utility \ 23 gbb_utility \
24 load_firmware_test \
24 load_kernel_test \ 25 load_kernel_test \
25 pad_digest_utility \ 26 pad_digest_utility \
26 signature_digest_utility \ 27 signature_digest_utility \
27 tlcl_generator \ 28 tlcl_generator \
28 tpm_init_temp_fix \ 29 tpm_init_temp_fix \
29 tpmc \ 30 tpmc \
30 vbutil_firmware \ 31 vbutil_firmware \
31 vbutil_kernel \ 32 vbutil_kernel \
32 vbutil_key \ 33 vbutil_key \
33 vbutil_keyblock \ 34 vbutil_keyblock \
(...skipping 21 matching lines...) Expand all
55 56
56 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) 57 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS)
57 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 58 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
58 59
59 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 60 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
60 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 61 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
61 62
62 ${BUILD_ROOT}/bmpblk_utility: bmpblk_utility.cc 63 ${BUILD_ROOT}/bmpblk_utility: bmpblk_utility.cc
63 $(CXX) -DWITH_UTIL_MAIN -lyaml $(CFLAGS) $< -o $@ 64 $(CXX) -DWITH_UTIL_MAIN -lyaml $(CFLAGS) $< -o $@
64 65
66 ${BUILD_ROOT}/load_firmware_test: load_firmware_test.c $(LIBS)
67 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
68
65 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 69 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
66 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 70 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
67 71
68 ${BUILD_ROOT}/pad_digest_utility: pad_digest_utility.c $(LIBS) 72 ${BUILD_ROOT}/pad_digest_utility: pad_digest_utility.c $(LIBS)
69 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 73 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
70 74
71 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) 75 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS)
72 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 76 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
73 77
74 ${BUILD_ROOT}/tlcl_generator: tlcl_generator.c 78 ${BUILD_ROOT}/tlcl_generator: tlcl_generator.c
(...skipping 30 matching lines...) Expand all
105 ${BUILD_ROOT}/dev_debug_vboot: dev_debug_vboot 109 ${BUILD_ROOT}/dev_debug_vboot: dev_debug_vboot
106 cp -f $< $@ 110 cp -f $< $@
107 chmod +x $@ 111 chmod +x $@
108 112
109 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS) 113 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS)
110 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) 114 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
111 115
112 ${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS) 116 ${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS)
113 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 117 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
114 118
115 ${BUILD_ROOT}/dump_fmap: dump_fmap.c 119 ${BUILD_ROOT}/dump_fmap: dump_fmap.c $(LIBS)
116 » $(CC) $(CFLAGS) $< -o $@ 120 » $(CC) $(CFLAGS) $< -o $@ $(LIBS)
117 121
118 ${BUILD_ROOT}/pack_firmware_image: pack_firmware_image 122 ${BUILD_ROOT}/pack_firmware_image: pack_firmware_image
119 cp -f $< $@ 123 cp -f $< $@
120 chmod +x $@ 124 chmod +x $@
121 125
122 install: $(TARGET_BINS) 126 install: $(TARGET_BINS)
123 mkdir -p $(DESTDIR) 127 mkdir -p $(DESTDIR)
124 cp -f $(TARGET_BINS) $(DESTDIR) 128 cp -f $(TARGET_BINS) $(DESTDIR)
125 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 129 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
126 130
127 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 131 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
128 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 132 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
129 133
130 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 134 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
131 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 135 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
132 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 136 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
133 ( echo "%% Updating structures.h %%" && \ 137 ( echo "%% Updating structures.h %%" && \
134 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 138 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
135 139
136 -include ${ALL_DEPS} 140 -include ${ALL_DEPS}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698