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

Side by Side Diff: utility/Makefile

Issue 2811029: utility: add a simple tool for dumping the kernel config (Closed) Base URL: ssh://git@gitrw.chromium.org//vboot_reference.git
Patch Set: clean up offsets Created 10 years, 6 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/dump_kernel_config.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$(HOSTDIR)/include 9 -I$(HOSTDIR)/include
10 CFLAGS += $(INCLUDES) 10 CFLAGS += $(INCLUDES)
11 CFLAGS += -MMD -MF $@.d 11 CFLAGS += -MMD -MF $@.d
12 LIBS = $(HOSTLIB) $(FWLIB) 12 LIBS = $(HOSTLIB) $(FWLIB)
13 13
14 BUILD_ROOT = ${BUILD}/utility 14 BUILD_ROOT = ${BUILD}/utility
15 15
16 DESTDIR ?= /usr/bin 16 DESTDIR ?= /usr/bin
17 17
18 TARGET_NAMES = dumpRSAPublicKey \ 18 TARGET_NAMES = dumpRSAPublicKey \
19 dump_kernel_config \
19 gbb_utility \ 20 gbb_utility \
20 load_kernel_test \ 21 load_kernel_test \
21 signature_digest_utility \ 22 signature_digest_utility \
22 vbutil_firmware \ 23 vbutil_firmware \
23 vbutil_kernel \ 24 vbutil_kernel \
24 vbutil_key \ 25 vbutil_key \
25 vbutil_keyblock \ 26 vbutil_keyblock \
26 verify_data 27 verify_data
27 28
28 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 29 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
29 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 30 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
30 31
31 all: $(TARGET_BINS) 32 all: $(TARGET_BINS)
32 33
33 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 34 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
34 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto 35 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto
35 36
37 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS)
38 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
39
36 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 40 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
37 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 41 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
38 42
39 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 43 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
40 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 44 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
41 45
42 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) 46 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS)
43 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 47 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
44 48
45 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS) 49 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS)
(...skipping 13 matching lines...) Expand all
59 63
60 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) 64 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS)
61 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 65 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
62 66
63 install: $(TARGET_BINS) 67 install: $(TARGET_BINS)
64 mkdir -p $(DESTDIR) 68 mkdir -p $(DESTDIR)
65 cp -f $(TARGET_BINS) $(DESTDIR) 69 cp -f $(TARGET_BINS) $(DESTDIR)
66 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 70 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
67 71
68 -include ${ALL_DEPS} 72 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « no previous file | utility/dump_kernel_config.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698