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

Side by Side Diff: utility/Makefile

Issue 3124004: Changes to allow user-signed kernels to be generated. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Respond to feedback 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/run_vbutil_tests.sh ('k') | utility/dev_make_keypair » ('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 vbutil_firmware \ 26 vbutil_firmware \
27 vbutil_kernel \ 27 vbutil_kernel \
28 vbutil_key \ 28 vbutil_key \
29 vbutil_keyblock \ 29 vbutil_keyblock \
30 » » verify_data 30 » » verify_data \
31 » » dev_make_keypair
31 32
32 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 33 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
33 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 34 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
34 35
35 all: $(TARGET_BINS) 36 all: $(TARGET_BINS)
36 37
37 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 38 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
38 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto 39 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto
39 40
40 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) 41 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS)
(...skipping 25 matching lines...) Expand all
66 67
67 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS) 68 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS)
68 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 69 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
69 70
70 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) 71 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS)
71 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 72 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
72 73
73 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS) 74 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS)
74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) 75 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
75 76
77 ${BUILD_ROOT}/dev_make_keypair: dev_make_keypair
78 cp -f $< $@
79
76 install: $(TARGET_BINS) 80 install: $(TARGET_BINS)
77 mkdir -p $(DESTDIR) 81 mkdir -p $(DESTDIR)
78 cp -f $(TARGET_BINS) $(DESTDIR) 82 cp -f $(TARGET_BINS) $(DESTDIR)
79 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 83 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
80 84
81 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 85 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
82 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 86 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
83 87
84 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 88 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
85 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 89 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
86 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 90 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
87 ( echo "%% Updating structures.h %%" && \ 91 ( echo "%% Updating structures.h %%" && \
88 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 92 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
89 93
90 -include ${ALL_DEPS} 94 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « tests/run_vbutil_tests.sh ('k') | utility/dev_make_keypair » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698