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

Side by Side Diff: utility/Makefile

Issue 6413002: Initial version of crossystem. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: 2nd round of fixes 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 | « host/lib/crossystem.c ('k') | utility/crossystem_main.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 = crossystem \
21 » » dumpRSAPublicKey \
21 dump_kernel_config \ 22 dump_kernel_config \
22 gbb_utility \ 23 gbb_utility \
23 load_kernel_test \ 24 load_kernel_test \
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 \
34 dev_sign_file \ 35 dev_sign_file \
35 dump_fmap \ 36 dump_fmap \
36 dev_debug_vboot \ 37 dev_debug_vboot \
37 pack_firmware_image 38 pack_firmware_image
38 39
39 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 40 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
40 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 41 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
41 42
42 all: $(TARGET_BINS) 43 all: $(TARGET_BINS)
43 44
45 ${BUILD_ROOT}/crossystem: crossystem_main.c $(LIBS)
46 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS)
47
44 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 48 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
45 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto 49 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto
46 50
47 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) 51 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS)
48 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 52 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
49 53
50 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 54 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
51 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 55 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
52 56
53 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 57 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 116 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
113 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 117 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
114 118
115 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 119 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
116 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 120 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
117 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 121 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
118 ( echo "%% Updating structures.h %%" && \ 122 ( echo "%% Updating structures.h %%" && \
119 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 123 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
120 124
121 -include ${ALL_DEPS} 125 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « host/lib/crossystem.c ('k') | utility/crossystem_main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698