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

Side by Side Diff: utility/Makefile

Issue 6334133: Add utility to pad a given hash for PKCS1.5 signatures (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: fix messages 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
« no previous file with comments | « scripts/sign_data.sh ('k') | utility/pad_digest_utility.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) 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 = dumpRSAPublicKey \ 20 TARGET_NAMES = dumpRSAPublicKey \
21 dump_kernel_config \ 21 dump_kernel_config \
22 gbb_utility \ 22 gbb_utility \
23 load_kernel_test \ 23 load_kernel_test \
24 pad_digest_utility \
24 signature_digest_utility \ 25 signature_digest_utility \
25 tlcl_generator \ 26 tlcl_generator \
26 tpm_init_temp_fix \ 27 tpm_init_temp_fix \
27 tpmc \ 28 tpmc \
28 vbutil_firmware \ 29 vbutil_firmware \
29 vbutil_kernel \ 30 vbutil_kernel \
30 vbutil_key \ 31 vbutil_key \
31 vbutil_keyblock \ 32 vbutil_keyblock \
32 verify_data \ 33 verify_data \
33 dev_make_keypair \ 34 dev_make_keypair \
(...skipping 19 matching lines...) Expand all
53 54
54 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 55 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
55 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 56 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
56 57
57 ${BUILD_ROOT}/bmpblk_utility: bmpblk_utility.cc 58 ${BUILD_ROOT}/bmpblk_utility: bmpblk_utility.cc
58 $(CXX) -DWITH_UTIL_MAIN -lyaml $(CFLAGS) $< -o $@ 59 $(CXX) -DWITH_UTIL_MAIN -lyaml $(CFLAGS) $< -o $@
59 60
60 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 61 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
61 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 62 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
62 63
64 ${BUILD_ROOT}/pad_digest_utility: pad_digest_utility.c $(LIBS)
65 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
66
63 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) 67 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS)
64 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 68 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
65 69
66 ${BUILD_ROOT}/tlcl_generator: tlcl_generator.c 70 ${BUILD_ROOT}/tlcl_generator: tlcl_generator.c
67 $(HOSTCC) $(CFLAGS) $(INCLUDES) -fpack-struct $< -o $@ 71 $(HOSTCC) $(CFLAGS) $(INCLUDES) -fpack-struct $< -o $@
68 72
69 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS) 73 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS)
70 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
71 75
72 ${BUILD_ROOT}/vbutil_kernel: vbutil_kernel.c $(LIBS) 76 ${BUILD_ROOT}/vbutil_kernel: vbutil_kernel.c $(LIBS)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 123 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
120 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 124 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
121 125
122 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 126 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
123 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 127 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
124 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 128 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
125 ( echo "%% Updating structures.h %%" && \ 129 ( echo "%% Updating structures.h %%" && \
126 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 130 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
127 131
128 -include ${ALL_DEPS} 132 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « scripts/sign_data.sh ('k') | utility/pad_digest_utility.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698