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

Side by Side Diff: utility/Makefile

Issue 2762009: Add vbutil_key (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Util to pack/unpack .vbpubk files 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/vboot_common3_tests.c ('k') | utility/load_kernel_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 FWDIR ?= ../vboot_firmware/ 5 FWDIR ?= ../vboot_firmware/
6 TOP ?= ../ 6 TOP ?= ../
7 CC ?= gcc 7 CC ?= gcc
8 CXX ?= g++ 8 CXX ?= g++
9 INCLUDES += -I./include \ 9 INCLUDES += -I./include \
10 -I$(FWDIR)/lib/include \ 10 -I$(FWDIR)/lib/include \
11 -I$(FWDIR)/lib/cgptlib/include \ 11 -I$(FWDIR)/lib/cgptlib/include \
12 -I$(FWDIR)/lib/cryptolib/include \ 12 -I$(FWDIR)/lib/cryptolib/include \
13 -I$(HOSTDIR)/include \ 13 -I$(HOSTDIR)/include \
14 -I../misclibs/include \ 14 -I../misclibs/include \
15 -I../vfirmware/include\ 15 -I../vfirmware/include\
16 -I../vboot_firmware/include\ 16 -I../vboot_firmware/include\
17 -I../vkernel/include 17 -I../vkernel/include
18 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror $(INCLUDES) 18 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror $(INCLUDES)
19 LIBS = $(TOP)/misclibs/file_keys.o \ 19 LIBS = $(TOP)/misclibs/file_keys.o \
20 $(TOP)/misclibs/signature_digest.o \ 20 $(TOP)/misclibs/signature_digest.o \
21 $(TOP)/vfirmware/firmware_image.o \ 21 $(TOP)/vfirmware/firmware_image.o \
22 $(TOP)/vkernel/kernel_image.o \ 22 $(TOP)/vkernel/kernel_image.o \
23 » $(FWLIB) \ 23 » $(HOSTLIB) \
24 » $(HOSTLIB) 24 » $(FWLIB)
25 SUBDIRS = cgpt 25 SUBDIRS = cgpt
26 26
27 DESTDIR ?= /opt/bin 27 DESTDIR ?= /opt/bin
28 28
29 TARGET_BINS = dumpRSAPublicKey \ 29 TARGET_BINS = dumpRSAPublicKey \
30 firmware_utility \ 30 firmware_utility \
31 gbb_utility \ 31 gbb_utility \
32 kernel_utility \ 32 kernel_utility \
33 load_kernel_test \ 33 load_kernel_test \
34 signature_digest_utility \ 34 signature_digest_utility \
35 vbutil_key \
35 verify_data 36 verify_data
36 37
37 all: $(TARGET_BINS) subdirs 38 all: $(TARGET_BINS) subdirs
38 39
39 .PHONY: subdirs 40 .PHONY: subdirs
40 subdirs: 41 subdirs:
41 set -e; \ 42 set -e; \
42 for i in $(SUBDIRS); do \ 43 for i in $(SUBDIRS); do \
43 $(MAKE) -C $$i $(MAKECMDGOALS); \ 44 $(MAKE) -C $$i $(MAKECMDGOALS); \
44 done 45 done
(...skipping 14 matching lines...) Expand all
59 kernel_utility: kernel_utility.cc $(LIBS) 60 kernel_utility: kernel_utility.cc $(LIBS)
60 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ 61 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
61 -o $@ $(LIBS) -lcrypto 62 -o $@ $(LIBS) -lcrypto
62 63
63 load_kernel_test: load_kernel_test.c $(LIBS) 64 load_kernel_test: load_kernel_test.c $(LIBS)
64 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 65 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
65 66
66 signature_digest_utility: signature_digest_utility.c $(LIBS) 67 signature_digest_utility: signature_digest_utility.c $(LIBS)
67 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 68 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
68 69
70 vbutil_key: vbutil_key.c $(LIBS)
71 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
72
69 verify_data: verify_data.c $(LIBS) 73 verify_data: verify_data.c $(LIBS)
70 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
71 75
72 clean: 76 clean:
73 set -e; \ 77 set -e; \
74 for i in $(SUBDIRS); do \ 78 for i in $(SUBDIRS); do \
75 $(MAKE) -C $$i clean; \ 79 $(MAKE) -C $$i clean; \
76 done 80 done
77 rm -f $(TARGET_BINS) 81 rm -f $(TARGET_BINS)
78 82
79 install: $(TARGET_BINS) subdirs 83 install: $(TARGET_BINS) subdirs
80 mkdir -p $(DESTDIR) 84 mkdir -p $(DESTDIR)
81 cp -f $(TARGET_BINS) $(DESTDIR) 85 cp -f $(TARGET_BINS) $(DESTDIR)
82 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_BINS)) 86 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_BINS))
83 87
84 %o : %c 88 %o : %c
85 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< 89 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
OLDNEW
« no previous file with comments | « tests/vboot_common3_tests.c ('k') | utility/load_kernel_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698