| 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 16 matching lines...) Expand all Loading... |
| 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 \ | 35 dump_fmap \ |
| 36 dev_debug_vboot \ | 36 dev_debug_vboot \ |
| 37 pack_firmware_image |
| 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) |
| 42 | 43 |
| 43 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c | 44 ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c |
| 44 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto | 45 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto |
| 45 | 46 |
| 46 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) | 47 ${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 93 |
| 93 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS) | 94 ${BUILD_ROOT}/tpmc: tpmc.c $(LIBS) |
| 94 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) | 95 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) |
| 95 | 96 |
| 96 ${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS) | 97 ${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS) |
| 97 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto | 98 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto |
| 98 | 99 |
| 99 ${BUILD_ROOT}/dump_fmap: dump_fmap.c | 100 ${BUILD_ROOT}/dump_fmap: dump_fmap.c |
| 100 $(CC) $(CFLAGS) $< -o $@ | 101 $(CC) $(CFLAGS) $< -o $@ |
| 101 | 102 |
| 103 ${BUILD_ROOT}/pack_firmware_image: pack_firmware_image |
| 104 cp -f $< $@ |
| 105 chmod +x $@ |
| 106 |
| 102 install: $(TARGET_BINS) | 107 install: $(TARGET_BINS) |
| 103 mkdir -p $(DESTDIR) | 108 mkdir -p $(DESTDIR) |
| 104 cp -f $(TARGET_BINS) $(DESTDIR) | 109 cp -f $(TARGET_BINS) $(DESTDIR) |
| 105 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) | 110 chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES)) |
| 106 | 111 |
| 107 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp | 112 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp |
| 108 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h | 113 STRUCTURES_SRC=${FWDIR}/lib/tpm_lite/include/tlcl_structures.h |
| 109 | 114 |
| 110 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator | 115 update_tlcl_structures: ${BUILD_ROOT}/tlcl_generator |
| 111 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) | 116 ${BUILD_ROOT}/tlcl_generator > $(STRUCTURES_TMP) |
| 112 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ | 117 cmp -s $(STRUCTURES_TMP) $(STRUCTURES_SRC) || \ |
| 113 ( echo "%% Updating structures.h %%" && \ | 118 ( echo "%% Updating structures.h %%" && \ |
| 114 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) | 119 cp $(STRUCTURES_TMP) $(STRUCTURES_SRC) ) |
| 115 | 120 |
| 116 -include ${ALL_DEPS} | 121 -include ${ALL_DEPS} |
| OLD | NEW |