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 TOP ?= ../ | 5 TOP ?= ../ |
6 CC ?= gcc | 6 CC ?= gcc |
7 CXX ?= g++ | 7 CXX ?= g++ |
8 INCLUDES += -I./include \ | 8 INCLUDES += -I./include \ |
9 -I$(FWDIR)/lib/include \ | 9 -I$(FWDIR)/lib/include \ |
10 -I$(FWDIR)/lib/cgptlib/include \ | 10 -I$(FWDIR)/lib/cgptlib/include \ |
11 -I$(FWDIR)/lib/cryptolib/include \ | 11 -I$(FWDIR)/lib/cryptolib/include \ |
12 -I../misclibs/include \ | 12 -I../misclibs/include \ |
13 -I../vfirmware/include\ | 13 -I../vfirmware/include\ |
14 -I../vboot_firmware/include\ | 14 -I../vboot_firmware/include\ |
15 -I../vkernel/include | 15 -I../vkernel/include |
16 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror $(INCLUDES) | 16 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror $(INCLUDES) |
17 LIBS = $(TOP)/misclibs/file_keys.o \ | 17 LIBS = $(TOP)/misclibs/file_keys.o \ |
18 $(TOP)/misclibs/signature_digest.o \ | 18 $(TOP)/misclibs/signature_digest.o \ |
19 $(TOP)/vfirmware/firmware_image.o \ | 19 $(TOP)/vfirmware/firmware_image.o \ |
20 $(TOP)/vkernel/kernel_image.o | 20 $(TOP)/vkernel/kernel_image.o |
21 SUBDIRS = cgpt | 21 SUBDIRS = cgpt |
22 | 22 |
23 DESTDIR ?= /opt/bin | 23 DESTDIR ?= /opt/bin |
24 | 24 |
25 TARGET_BINS = dumpRSAPublicKey \ | 25 TARGET_BINS = dumpRSAPublicKey \ |
26 firmware_utility \ | 26 firmware_utility \ |
27 gbb_utility \ | 27 gbb_utility \ |
28 kernel_utility \ | 28 kernel_utility \ |
| 29 load_kernel_test \ |
29 signature_digest_utility \ | 30 signature_digest_utility \ |
30 verify_data | 31 verify_data |
31 # Note: load_kernel_test is not part of TARGET_BINS, since it's a | |
32 # temporary test. | |
33 | 32 |
34 all: $(TARGET_BINS) subdirs | 33 all: $(TARGET_BINS) subdirs |
35 | 34 |
36 .PHONY: subdirs | 35 .PHONY: subdirs |
37 subdirs: | 36 subdirs: |
38 set -e; \ | 37 set -e; \ |
39 for i in $(SUBDIRS); do \ | 38 for i in $(SUBDIRS); do \ |
40 $(MAKE) -C $$i $(MAKECMDGOALS); \ | 39 $(MAKE) -C $$i $(MAKECMDGOALS); \ |
41 done | 40 done |
42 | 41 |
(...skipping 24 matching lines...) Expand all Loading... |
67 set -e; \ | 66 set -e; \ |
68 for i in $(SUBDIRS); do \ | 67 for i in $(SUBDIRS); do \ |
69 $(MAKE) -C $$i clean; \ | 68 $(MAKE) -C $$i clean; \ |
70 done | 69 done |
71 rm -f $(TARGET_BINS) | 70 rm -f $(TARGET_BINS) |
72 | 71 |
73 install: $(TARGET_BINS) subdirs | 72 install: $(TARGET_BINS) subdirs |
74 mkdir -p $(DESTDIR) | 73 mkdir -p $(DESTDIR) |
75 cp -f $(TARGET_BINS) $(DESTDIR) | 74 cp -f $(TARGET_BINS) $(DESTDIR) |
76 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_BINS)) | 75 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_BINS)) |
OLD | NEW |