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

Side by Side Diff: Makefile

Issue 6883040: Add option to use mocked TPM driver (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Code review 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 | firmware/Makefile » ('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 export FIRMWARE_ARCH 5 export FIRMWARE_ARCH
6 export MOCK_TPM
6 7
7 export CC ?= gcc 8 export CC ?= gcc
8 export CXX ?= g++ 9 export CXX ?= g++
9 export CFLAGS = -Wall -Werror 10 export CFLAGS = -Wall -Werror
10 11
11 ifeq (${DEBUG},) 12 ifeq (${DEBUG},)
12 CFLAGS += -O3 13 CFLAGS += -O3
13 else 14 else
14 CFLAGS += -O0 -g 15 CFLAGS += -O0 -g
15 endif 16 endif
16 17
17 # Override CC and CFLAGS only if FIRMWARE_CONFIG_PATH is not empty, but we 18 # Override CC and CFLAGS only if FIRMWARE_CONFIG_PATH is not empty, but we
18 # wish to preserve -D flags (so move all -D flags after this). 19 # wish to preserve -D flags (so move all -D flags after this).
19 ifneq (${FIRMWARE_CONFIG_PATH},) 20 ifneq (${FIRMWARE_CONFIG_PATH},)
20 include ${FIRMWARE_CONFIG_PATH} 21 include ${FIRMWARE_CONFIG_PATH}
21 endif 22 endif
22 23
23 # Fix compiling directly on host (outside of emake) 24 # Fix compiling directly on host (outside of emake)
24 ifeq ($(ARCH),) 25 ifeq ($(ARCH),)
25 export ARCH=amd64 26 export ARCH=amd64
Che-Liang Chiou 2011/04/21 11:22:36 Change from rebase to ToT.
26 endif 27 endif
27 28
28 ifeq ($(FIRMWARE_ARCH),) 29 ifeq ($(FIRMWARE_ARCH),)
29 CFLAGS += -DCHROMEOS_ENVIRONMENT 30 CFLAGS += -DCHROMEOS_ENVIRONMENT
30 endif 31 endif
31 32
32 ifneq (${DEBUG},) 33 ifneq (${DEBUG},)
33 CFLAGS += -DVBOOT_DEBUG 34 CFLAGS += -DVBOOT_DEBUG
34 endif 35 endif
35 36
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 $(MAKE) -C cgpt install 79 $(MAKE) -C cgpt install
79 80
80 runtests: 81 runtests:
81 $(MAKE) -C tests runtests 82 $(MAKE) -C tests runtests
82 83
83 rbtest: 84 rbtest:
84 $(MAKE) -C tests rbtest 85 $(MAKE) -C tests rbtest
85 86
86 runbmptests: 87 runbmptests:
87 $(MAKE) -C tests runbmptests 88 $(MAKE) -C tests runbmptests
OLDNEW
« no previous file with comments | « no previous file | firmware/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698