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

Side by Side Diff: utility/Makefile

Issue 3151005: Add dev_sign_file utility for developers to sign their install scripts. (Closed) Base URL: ssh://gitrw.chromium.org/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 | « no previous file | utility/dev_sign_file.c » ('j') | utility/dev_sign_file.c » ('J')
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 tpmc \
27 vbutil_firmware \ 27 vbutil_firmware \
28 vbutil_kernel \ 28 vbutil_kernel \
29 vbutil_key \ 29 vbutil_key \
adlr 2010/08/11 01:08:41 alphabetize this list
30 vbutil_keyblock \ 30 vbutil_keyblock \
31 verify_data \ 31 verify_data \
32 » » dev_make_keypair 32 » » dev_make_keypair \
33 » » dev_sign_file
33 34
34 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 35 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
35 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 36 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
36 37
37 all: $(TARGET_BINS) 38 all: $(TARGET_BINS)
38 39
39 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 40 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
40 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto 41 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto
41 42
42 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) 43 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS) 76 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS)
76 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) 77 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
77 78
78 ${BUILD_ROOT}/dev_make_keypair: dev_make_keypair 79 ${BUILD_ROOT}/dev_make_keypair: dev_make_keypair
79 cp -f $< $@ 80 cp -f $< $@
80 81
81 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS) 82 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS)
82 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) 83 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
83 84
85 ${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS)
86 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
87
84 install: $(TARGET_BINS) 88 install: $(TARGET_BINS)
85 mkdir -p $(DESTDIR) 89 mkdir -p $(DESTDIR)
86 cp -f $(TARGET_BINS) $(DESTDIR) 90 cp -f $(TARGET_BINS) $(DESTDIR)
87 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 91 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
88 92
89 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 93 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
90 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 94 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
91 95
92 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 96 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
93 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 97 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
94 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 98 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
95 ( echo "%% Updating structures.h %%" && \ 99 ( echo "%% Updating structures.h %%" && \
96 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 100 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
97 101
98 -include ${ALL_DEPS} 102 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « no previous file | utility/dev_sign_file.c » ('j') | utility/dev_sign_file.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698