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

Side by Side Diff: utility/Makefile

Issue 2792014: Rough first draft of the firmware signing utility. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: rebased with the latest code in master 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/sign_image.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 sign_image \
32 signature_digest_utility \ 33 signature_digest_utility \
33 vbutil_key \ 34 vbutil_key \
34 vbutil_kernel \ 35 vbutil_kernel \
35 vbutil_keyblock \ 36 vbutil_keyblock \
36 verify_data 37 verify_data
37 38
38 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 39 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
39 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 40 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
40 41
41 all: $(TARGET_BINS) 42 all: $(TARGET_BINS)
(...skipping 23 matching lines...) Expand all
65 66
66 ${BUILD_ROOT}/vbutil_key: vbutil_key.c $(LIBS) 67 ${BUILD_ROOT}/vbutil_key: vbutil_key.c $(LIBS)
67 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 68 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
68 69
69 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS) 70 ${BUILD_ROOT}/vbutil_keyblock: vbutil_keyblock.c $(LIBS)
70 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 71 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
71 72
72 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS) 73 ${BUILD_ROOT}/verify_data: verify_data.c $(LIBS)
73 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto 74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
74 75
76 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS)
77 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto
75 78
76 install: $(TARGET_BINS) 79 install: $(TARGET_BINS)
77 mkdir -p $(DESTDIR) 80 mkdir -p $(DESTDIR)
78 cp -f $(TARGET_BINS) $(DESTDIR) 81 cp -f $(TARGET_BINS) $(DESTDIR)
79 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) 82 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
80 83
81 -include ALL_DEPS 84 -include ALL_DEPS
OLDNEW
« no previous file with comments | « no previous file | utility/sign_image.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698