OLD | NEW |
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 \ |
11 -I../vboot_firmware/include\ | 11 -I../vboot_firmware/include\ |
12 -I../vkernel/include | 12 -I../vkernel/include |
13 CFLAGS += $(INCLUDES) | 13 CFLAGS += $(INCLUDES) |
14 CFLAGS += -MMD -MF $@.d | 14 CFLAGS += -MMD -MF $@.d |
15 LIBS = $(BUILD)/misclibs/file_keys.o \ | 15 LIBS = $(BUILD)/misclibs/file_keys.o \ |
16 $(BUILD)/misclibs/signature_digest.o \ | 16 $(BUILD)/misclibs/signature_digest.o \ |
17 $(BUILD)/vkernel/kernel_image.o \ | 17 $(BUILD)/vkernel/kernel_image.o \ |
| 18 $(BUILD)/vkernel/kernel_image_fw.o \ |
| 19 $(BUILD)/vkernel/load_kernel_fw.o \ |
18 $(HOSTLIB) \ | 20 $(HOSTLIB) \ |
19 $(FWLIB) | 21 $(FWLIB) |
20 | 22 |
21 BUILD_ROOT = ${BUILD}/utility | 23 BUILD_ROOT = ${BUILD}/utility |
22 | 24 |
23 DESTDIR ?= /usr/bin | 25 DESTDIR ?= /usr/bin |
24 | 26 |
25 TARGET_NAMES = dumpRSAPublicKey \ | 27 TARGET_NAMES = dumpRSAPublicKey \ |
26 gbb_utility \ | 28 gbb_utility \ |
27 kernel_utility \ | 29 kernel_utility \ |
28 load_kernel_test \ | 30 load_kernel_test \ |
29 » » load_kernel2_test \ | 31 » » load_kernel_test_old \ |
30 sign_image \ | 32 sign_image \ |
31 signature_digest_utility \ | 33 signature_digest_utility \ |
32 vbutil_firmware \ | 34 vbutil_firmware \ |
33 vbutil_kernel \ | 35 vbutil_kernel \ |
34 vbutil_key \ | 36 vbutil_key \ |
35 vbutil_keyblock \ | 37 vbutil_keyblock \ |
36 verify_data | 38 verify_data |
37 | 39 |
38 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) | 40 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) |
39 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) | 41 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) |
40 | 42 |
41 all: $(TARGET_BINS) | 43 all: $(TARGET_BINS) |
42 | 44 |
43 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c | 45 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c |
44 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto | 46 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto |
45 | 47 |
46 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc | 48 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc |
47 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ | 49 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ |
48 | 50 |
49 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) | 51 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) |
50 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 52 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
51 | 53 |
52 ${BUILD_ROOT}/load_kernel2_test: load_kernel2_test.c $(LIBS) | 54 ${BUILD_ROOT}/load_kernel_test_old: load_kernel_test_old.c $(LIBS) |
53 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 55 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
54 | 56 |
55 ${BUILD_ROOT}/kernel_utility: kernel_utility.cc $(LIBS) | 57 ${BUILD_ROOT}/kernel_utility: kernel_utility.cc $(LIBS) |
56 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ | 58 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ |
57 -o $@ $(LIBS) -lcrypto | 59 -o $@ $(LIBS) -lcrypto |
58 | 60 |
59 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) | 61 ${BUILD_ROOT}/signature_digest_utility: signature_digest_utility.c $(LIBS) |
60 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 62 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
61 | 63 |
62 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS) | 64 ${BUILD_ROOT}/vbutil_firmware: vbutil_firmware.c $(LIBS) |
(...skipping 13 matching lines...) Expand all Loading... |
76 | 78 |
77 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) | 79 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) |
78 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 80 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
79 | 81 |
80 install: $(TARGET_BINS) | 82 install: $(TARGET_BINS) |
81 mkdir -p $(DESTDIR) | 83 mkdir -p $(DESTDIR) |
82 cp -f $(TARGET_BINS) $(DESTDIR) | 84 cp -f $(TARGET_BINS) $(DESTDIR) |
83 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) | 85 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) |
84 | 86 |
85 -include ALL_DEPS | 87 -include ALL_DEPS |
OLD | NEW |