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

Side by Side Diff: utility/Makefile

Issue 2800007: Add load_kernel2_test (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: 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/load_kernel2_test.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 11 matching lines...) Expand all
22 22
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 load_kernel2_test \
32 sign_image \ 33 sign_image \
33 signature_digest_utility \ 34 signature_digest_utility \
34 vbutil_firmware \ 35 vbutil_firmware \
35 vbutil_kernel \ 36 vbutil_kernel \
36 vbutil_key \ 37 vbutil_key \
37 vbutil_keyblock \ 38 vbutil_keyblock \
38 verify_data 39 verify_data
39 40
40 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 41 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
41 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 42 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
42 43
43 all: $(TARGET_BINS) 44 all: $(TARGET_BINS)
44 45
45 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 46 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
46 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto 47 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto
47 48
48 ${BUILD_ROOT}/firmware_utility: firmware_utility.cc $(LIBS) 49 ${BUILD_ROOT}/firmware_utility: firmware_utility.cc $(LIBS)
49 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ 50 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
50 -o $@ $(LIBS) -lcrypto 51 -o $@ $(LIBS) -lcrypto
51 52
52 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 53 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
53 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 54 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
54 55
55 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 56 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
56 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 57 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
57 58
59 ${BUILD_ROOT}/load_kernel2_test: load_kernel2_test.c $(LIBS)
60 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
61
58 ${BUILD_ROOT}/kernel_utility: kernel_utility.cc $(LIBS) 62 ${BUILD_ROOT}/kernel_utility: kernel_utility.cc $(LIBS)
59 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ 63 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
60 -o $@ $(LIBS) -lcrypto 64 -o $@ $(LIBS) -lcrypto
61 65
62 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) 66 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS)
63 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 67 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
64 68
65 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS) 69 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS)
66 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 70 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
67 71
(...skipping 11 matching lines...) Expand all
79 83
80 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) 84 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS)
81 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 85 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
82 86
83 install: $(TARGET_BINS) 87 install: $(TARGET_BINS)
84 mkdir -p $(DESTDIR) 88 mkdir -p $(DESTDIR)
85 cp -f $(TARGET_BINS) $(DESTDIR) 89 cp -f $(TARGET_BINS) $(DESTDIR)
86 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 90 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
87 91
88 -include ALL_DEPS 92 -include ALL_DEPS
OLDNEW
« no previous file with comments | « no previous file | utility/load_kernel2_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698