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

Side by Side Diff: utility/Makefile

Issue 2837005: Add vbutil_firmware (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: rebase 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/vbutil_firmware.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 -I../misclibs/include \ 10 -I../misclibs/include \
(...skipping 12 matching lines...) Expand all
23 BUILD_ROOT = ${BUILD}/utility 23 BUILD_ROOT = ${BUILD}/utility
24 24
25 DESTDIR ?= /usr/bin 25 DESTDIR ?= /usr/bin
26 26
27 TARGET_NAMES = dumpRSAPublicKey \ 27 TARGET_NAMES = dumpRSAPublicKey \
28 firmware_utility \ 28 firmware_utility \
29 gbb_utility \ 29 gbb_utility \
30 kernel_utility \ 30 kernel_utility \
31 load_kernel_test \ 31 load_kernel_test \
32 signature_digest_utility \ 32 signature_digest_utility \
33 vbutil_firmware \
34 vbutil_kernel \
33 vbutil_key \ 35 vbutil_key \
34 vbutil_kernel \
35 vbutil_keyblock \ 36 vbutil_keyblock \
36 verify_data 37 verify_data
37 38
38 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 39 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
39 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 40 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
40 41
41 all: $(TARGET_BINS) 42 all: $(TARGET_BINS)
42 43
43 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 44 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
44 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto 45 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto
45 46
46 ${BUILD_ROOT}/firmware_utility: firmware_utility.cc $(LIBS) 47 ${BUILD_ROOT}/firmware_utility: firmware_utility.cc $(LIBS)
47 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ 48 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
48 -o $@ $(LIBS) -lcrypto 49 -o $@ $(LIBS) -lcrypto
49 50
50 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 51 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
51 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 52 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
52 53
53 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 54 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
54 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 55 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
55 56
56 ${BUILD_ROOT}/kernel_utility: kernel_utility.cc $(LIBS) 57 ${BUILD_ROOT}/kernel_utility: kernel_utility.cc $(LIBS)
57 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ 58 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
58 -o $@ $(LIBS) -lcrypto 59 -o $@ $(LIBS) -lcrypto
59 60
60 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) 61 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS)
61 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 62 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
62 63
64 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS)
65 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
66
63 ${BUILD_ROOT}/vbutil_kernel: vbutil_kernel.c $(LIBS) 67 ${BUILD_ROOT}/vbutil_kernel: vbutil_kernel.c $(LIBS)
64 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 68 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
65 69
66 ${BUILD_ROOT}/vbutil_key: vbutil_key.c $(LIBS) 70 ${BUILD_ROOT}/vbutil_key: vbutil_key.c $(LIBS)
67 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 71 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
68 72
69 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS) 73 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS)
70 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
71 75
72 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS) 76 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS)
73 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 77 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
74 78
75 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 -include ALL_DEPS 85 -include ALL_DEPS
OLDNEW
« no previous file with comments | « no previous file | utility/vbutil_firmware.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698