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

Side by Side Diff: utility/Makefile

Issue 2815011: Remove unused files, and tidy the directory structure of the remaining ones. (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 | « tests/test_common.c ('k') | utility/include/firmware_utility.h » ('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 \
11 » » -I../vboot_firmware/include\
12 » » -I../vkernel/include
13 CFLAGS += $(INCLUDES) 10 CFLAGS += $(INCLUDES)
14 CFLAGS += -MMD -MF $@.d 11 CFLAGS += -MMD -MF $@.d
15 LIBS = $(BUILD)/misclibs/file_keys.o \ 12 LIBS = $(HOSTLIB) $(FWLIB)
16 » $(BUILD)/misclibs/signature_digest.o \
17 » $(BUILD)/vkernel/kernel_image.o \
18 » $(BUILD)/vkernel/kernel_image_fw.o \
19 » $(BUILD)/vkernel/load_kernel_fw.o \
20 » $(HOSTLIB) \
21 » $(FWLIB)
22 13
23 BUILD_ROOT = ${BUILD}/utility 14 BUILD_ROOT = ${BUILD}/utility
24 15
25 DESTDIR ?= /usr/bin 16 DESTDIR ?= /usr/bin
26 17
27 TARGET_NAMES = dumpRSAPublicKey \ 18 TARGET_NAMES = dumpRSAPublicKey \
28 gbb_utility \ 19 gbb_utility \
29 kernel_utility \
30 load_kernel_test \ 20 load_kernel_test \
31 load_kernel_test_old \
32 sign_image \
33 signature_digest_utility \ 21 signature_digest_utility \
34 vbutil_firmware \ 22 vbutil_firmware \
35 vbutil_kernel \ 23 vbutil_kernel \
36 vbutil_key \ 24 vbutil_key \
37 vbutil_keyblock \ 25 vbutil_keyblock \
38 verify_data 26 verify_data
39 27
40 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 28 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
41 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 29 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
42 30
43 all: $(TARGET_BINS) 31 all: $(TARGET_BINS)
44 32
45 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 33 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
46 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto 34 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto
47 35
48 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 36 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
49 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 37 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
50 38
51 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 39 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
52 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 40 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
53 41
54 ${BUILD_ROOT}/load_kernel_test_old: load_kernel_test_old.c $(LIBS)
55 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
56
57 ${BUILD_ROOT}/kernel_utility: kernel_utility.cc $(LIBS)
58 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
59 -o $@ $(LIBS) -lcrypto
60
61 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) 42 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS)
62 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 43 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
63 44
64 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS) 45 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS)
65 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 46 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
66 47
67 ${BUILD_ROOT}/vbutil_kernel: vbutil_kernel.c $(LIBS) 48 ${BUILD_ROOT}/vbutil_kernel: vbutil_kernel.c $(LIBS)
68 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 49 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
69 50
70 ${BUILD_ROOT}/vbutil_key: vbutil_key.c $(LIBS) 51 ${BUILD_ROOT}/vbutil_key: vbutil_key.c $(LIBS)
71 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 52 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
72 53
73 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS) 54 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS)
74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 55 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
75 56
76 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS) 57 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS)
77 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 58 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
78 59
79 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) 60 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS)
80 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 61 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
81 62
82 install: $(TARGET_BINS) 63 install: $(TARGET_BINS)
83 mkdir -p $(DESTDIR) 64 mkdir -p $(DESTDIR)
84 cp -f $(TARGET_BINS) $(DESTDIR) 65 cp -f $(TARGET_BINS) $(DESTDIR)
85 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 66 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
86 67
87 -include ${ALL_DEPS} 68 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « tests/test_common.c ('k') | utility/include/firmware_utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698