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

Side by Side Diff: firmware/Makefile

Issue 6667051: Move ContinueSelfTest to a later point to save time. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Expand on comments Created 9 years, 9 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 | firmware/lib/rollback_index.c » ('j') | firmware/lib/tpm_lite/tlcl.c » ('J')
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 FWTOP := $(shell pwd) 5 FWTOP := $(shell pwd)
6 LIBDIR = $(FWTOP)/lib 6 LIBDIR = $(FWTOP)/lib
7 STUBDIR = $(FWTOP)/stub 7 STUBDIR = $(FWTOP)/stub
8 TESTDIR = $(FWTOP)/linktest 8 TESTDIR = $(FWTOP)/linktest
9 BUILD_ROOT := ${BUILD}/$(shell basename ${FWTOP}) 9 BUILD_ROOT := ${BUILD}/$(shell basename ${FWTOP})
10 LIBS = $(FWLIB) # Firmware library must be self-contained 10 LIBS = $(FWLIB) # Firmware library must be self-contained
11 11
12 # Disable rollback TPM when compiling locally, since otherwise 12 # Disable rollback TPM when compiling locally, since otherwise
13 # load_kernel_test attempts to talk to the TPM. 13 # load_kernel_test attempts to talk to the TPM.
14 ifeq ($(FIRMWARE_ARCH),) 14 ifeq ($(FIRMWARE_ARCH),)
15 CFLAGS += -DDISABLE_ROLLBACK_TPM 15 CFLAGS += -DDISABLE_ROLLBACK_TPM
16 endif 16 endif
17 17
18 # TPM-specific flags. These depend on the particular TPM we're targeting for.
19 # They are needed here only for compiling parts of the firmware code into
20 # user-level tests.
21
22 # TPM_BLOCKING_CONTINUESELFTEST is defined if TPM_ContinueSelfTest blocks until
23 # the self test has completed.
24
25 CLAGS += -DTPM_BLOCKING_CONTINUESELFTEST
26
27 # TPM_MANUAL_SELFTEST is defined if the self test must be started manually
28 # (with a call to TPM_ContinueSelfTest) instead of starting automatically at
29 # power on.
30 #
31 # We sincerely hope that TPM_BLOCKING_CONTINUESELFTEST and TPM_MANUAL_SELFTEST
32 # are not both defined at the same time. (See comment in code.)
33
34 # CLAGS += -DTPM_MANUAL_SELFTEST
35
18 INCLUDES = \ 36 INCLUDES = \
19 -I$(FWTOP)/include \ 37 -I$(FWTOP)/include \
20 -I$(LIBDIR)/include \ 38 -I$(LIBDIR)/include \
21 -I$(LIBDIR)/cgptlib/include \ 39 -I$(LIBDIR)/cgptlib/include \
22 -I$(LIBDIR)/cryptolib/include \ 40 -I$(LIBDIR)/cryptolib/include \
23 -I$(LIBDIR)/tpm_lite/include 41 -I$(LIBDIR)/tpm_lite/include
24 42
25 ifeq ($(FIRMWARE_ARCH),) 43 ifeq ($(FIRMWARE_ARCH),)
26 INCLUDES += -I$(STUBDIR)/include 44 INCLUDES += -I$(STUBDIR)/include
27 else 45 else
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 $(TESTDIR)/main.c $(STUB_OBJS) $(LIBS) 85 $(TESTDIR)/main.c $(STUB_OBJS) $(LIBS)
68 else 86 else
69 test : $(FWLIB) 87 test : $(FWLIB)
70 endif 88 endif
71 89
72 include ../common.mk 90 include ../common.mk
73 91
74 $(FWLIB) : $(LIB_OBJS) 92 $(FWLIB) : $(LIB_OBJS)
75 rm -f $@ 93 rm -f $@
76 ar qc $@ $^ 94 ar qc $@ $^
OLDNEW
« no previous file with comments | « no previous file | firmware/lib/rollback_index.c » ('j') | firmware/lib/tpm_lite/tlcl.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698