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$(FWDIR)/lib/tpm_lite/include \ | 9 -I$(FWDIR)/lib/tpm_lite/include \ |
10 -I$(HOSTDIR)/include | 10 -I$(HOSTDIR)/include |
(...skipping 13 matching lines...) Expand all Loading... |
24 signature_digest_utility \ | 24 signature_digest_utility \ |
25 tlcl_generator \ | 25 tlcl_generator \ |
26 tpm_init_temp_fix \ | 26 tpm_init_temp_fix \ |
27 tpmc \ | 27 tpmc \ |
28 vbutil_firmware \ | 28 vbutil_firmware \ |
29 vbutil_kernel \ | 29 vbutil_kernel \ |
30 vbutil_key \ | 30 vbutil_key \ |
31 vbutil_keyblock \ | 31 vbutil_keyblock \ |
32 verify_data \ | 32 verify_data \ |
33 dev_make_keypair \ | 33 dev_make_keypair \ |
34 » » dev_sign_file | 34 » » dev_sign_file \ |
| 35 » » dump_fmap \ |
| 36 » » dev_debug_vboot |
35 | 37 |
36 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) | 38 TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES)) |
37 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) | 39 ALL_DEPS = $(addsuffix .d,${TARGET_BINS}) |
38 | 40 |
39 all: $(TARGET_BINS) | 41 all: $(TARGET_BINS) |
40 | 42 |
41 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c | 43 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c |
42 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto | 44 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto |
43 | 45 |
44 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) | 46 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) |
(...skipping 27 matching lines...) Expand all Loading... |
72 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 74 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
73 | 75 |
74 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) | 76 ${BUILD_ROOT}/sign_image: sign_image.c $(LIBS) |
75 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 77 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
76 | 78 |
77 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS) | 79 ${BUILD_ROOT}/tpm_init_temp_fix: tpm_init_temp_fix.c $(LIBS) |
78 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) | 80 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |
79 | 81 |
80 ${BUILD_ROOT}/dev_make_keypair: dev_make_keypair | 82 ${BUILD_ROOT}/dev_make_keypair: dev_make_keypair |
81 cp -f $< $@ | 83 cp -f $< $@ |
| 84 chmod +x $@ |
| 85 |
| 86 ${BUILD_ROOT}/dev_debug_vboot: dev_debug_vboot |
| 87 cp -f $< $@ |
| 88 chmod +x $@ |
82 | 89 |
83 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS) | 90 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS) |
84 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) | 91 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |
85 | 92 |
86 ${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS) | 93 ${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS) |
87 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 94 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
88 | 95 |
| 96 ${BUILD_ROOT}/dump_fmap: dump_fmap.c |
| 97 $(CC) $(CFLAGS) $< -o $@ |
| 98 |
89 install: $(TARGET_BINS) | 99 install: $(TARGET_BINS) |
90 mkdir -p $(DESTDIR) | 100 mkdir -p $(DESTDIR) |
91 cp -f $(TARGET_BINS) $(DESTDIR) | 101 cp -f $(TARGET_BINS) $(DESTDIR) |
92 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) | 102 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) |
93 | 103 |
94 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp | 104 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp |
95 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h | 105 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h |
96 | 106 |
97 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator | 107 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator |
98 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) | 108 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) |
99 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ | 109 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ |
100 ( echo "%% Updating structures.h %%" && \ | 110 ( echo "%% Updating structures.h %%" && \ |
101 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) | 111 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) |
102 | 112 |
103 -include ${ALL_DEPS} | 113 -include ${ALL_DEPS} |
OLD | NEW |