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

Side by Side Diff: utility/Makefile

Issue 6880176: Build EFI compression utilities on host (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | utility/eficompress.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) 2011 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2011 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$(FWDIR)/lib/tpm_lite/include \ 9 -I$(FWDIR)/lib/tpm_lite/include \
10 -I$(HOSTDIR)/include 10 -I$(HOSTDIR)/include
(...skipping 22 matching lines...) Expand all
33 vbutil_key \ 33 vbutil_key \
34 vbutil_keyblock \ 34 vbutil_keyblock \
35 verify_data \ 35 verify_data \
36 dev_make_keypair \ 36 dev_make_keypair \
37 dev_sign_file \ 37 dev_sign_file \
38 dump_fmap \ 38 dump_fmap \
39 dev_debug_vboot \ 39 dev_debug_vboot \
40 pack_firmware_image 40 pack_firmware_image
41 41
42 ifeq ($(MINIMAL),) 42 ifeq ($(MINIMAL),)
43 TARGET_NAMES += bmpblk_utility 43 TARGET_NAMES += bmpblk_utility eficompress efidecompress
44 endif 44 endif
45 45
46 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) 46 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
47 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) 47 ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
48 48
49 all: $(TARGET_BINS) 49 all: $(TARGET_BINS)
50 50
51 ${BUILD_ROOT}/crossystem: crossystem_main.c $(LIBS) 51 ${BUILD_ROOT}/crossystem: crossystem_main.c $(LIBS)
52 $(CC) $(CFLAGS) $< -o $@ $(LIBS) 52 $(CC) $(CFLAGS) $< -o $@ $(LIBS)
53 53
54 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c 54 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c
55 $(CC) $(CFLAGS) $< -o $@ -lcrypto 55 $(CC) $(CFLAGS) $< -o $@ -lcrypto
56 56
57 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) 57 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS)
58 $(CC) $(CFLAGS) $< -o $@ $(LIBS) -lcrypto 58 $(CC) $(CFLAGS) $< -o $@ $(LIBS) -lcrypto
59 59
60 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc 60 ${BUILD_ROOT}/gbb_utility: gbb_utility.cc
61 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ 61 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@
62 62
63 ${BUILD_ROOT}/bmpblk_utility.o: bmpblk_utility.cc 63 ${BUILD_ROOT}/bmpblk_utility.o: bmpblk_utility.cc
64 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) -c $< -o $@ 64 $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) -c $< -o $@
65 65
66 ${BUILD_ROOT}/bmpblk_util.o: bmpblk_util.c 66 ${BUILD_ROOT}/bmpblk_util.o: bmpblk_util.c
67 $(CC) $(CFLAGS) -c $< -o $@ 67 $(CC) $(CFLAGS) -c $< -o $@
68 68
69 ${BUILD_ROOT}/eficompress.o: eficompress.c 69 ${BUILD_ROOT}/eficompress.o: eficompress.c
70 $(CC) $(CFLAGS) -c $< -o $@ 70 $(CC) $(CFLAGS) -c $< -o $@
71 71
72 ${BUILD_ROOT}/eficompress: eficompress.c
73 $(CC) $(CFLAGS) -DSTANDALONE $< -o $@
74
72 ${BUILD_ROOT}/efidecompress.o: efidecompress.c 75 ${BUILD_ROOT}/efidecompress.o: efidecompress.c
73 $(CC) $(CFLAGS) -c $< -o $@ 76 $(CC) $(CFLAGS) -c $< -o $@
74 77
78 ${BUILD_ROOT}/efidecompress: efidecompress.c
79 $(CC) $(CFLAGS) -DSTANDALONE $< -o $@
80
75 ${BUILD_ROOT}/bmpblk_utility: ${BUILD_ROOT}/bmpblk_utility.o \ 81 ${BUILD_ROOT}/bmpblk_utility: ${BUILD_ROOT}/bmpblk_utility.o \
76 ${BUILD_ROOT}/bmpblk_util.o \ 82 ${BUILD_ROOT}/bmpblk_util.o \
77 ${BUILD_ROOT}/eficompress.o \ 83 ${BUILD_ROOT}/eficompress.o \
78 ${BUILD_ROOT}/efidecompress.o 84 ${BUILD_ROOT}/efidecompress.o
79 $(CXX) -llzma -lyaml $(CFLAGS) $^ -o $@ 85 $(CXX) -llzma -lyaml $(CFLAGS) $^ -o $@
80 86
81 ${BUILD_ROOT}/load_firmware_test: load_firmware_test.c $(LIBS) 87 ${BUILD_ROOT}/load_firmware_test: load_firmware_test.c $(LIBS)
82 $(CC) $(CFLAGS) $< -o $@ $(LIBS) -lcrypto 88 $(CC) $(CFLAGS) $< -o $@ $(LIBS) -lcrypto
83 89
84 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS) 90 ${BUILD_ROOT}/load_kernel_test: load_kernel_test.c $(LIBS)
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp 152 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
147 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h 153 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h
148 154
149 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator 155 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator
150 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) 156 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP)
151 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ 157 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \
152 ( echo "%% Updating structures.h %%" && \ 158 ( echo "%% Updating structures.h %%" && \
153 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) 159 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) )
154 160
155 -include ${ALL_DEPS} 161 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « no previous file | utility/eficompress.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698