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 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 Loading... | |
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 |
OLD | NEW |