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

Side by Side Diff: Makefile

Issue 6257018: Import firmware compiler flags (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 11 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 | no next file » | 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 FIRMWARE_CONFIG_PATH
6 7
7 export CC ?= gcc 8 export CC ?= gcc
8 export CXX ?= g++ 9 export CXX ?= g++
9 ifeq ($(FIRMWARE_ARCH),) 10 ifeq ($(FIRMWARE_ARCH),)
10 export CFLAGS = -Wall -Werror -DCHROMEOS_ENVIRONMENT 11 export CFLAGS = -Wall -Werror -DCHROMEOS_ENVIRONMENT
11 else 12 else
12 export CFLAGS = -Wall -Werror 13 export CFLAGS = -Wall -Werror
13 endif 14 endif
14 15
15 ifeq (${DEBUG},) 16 ifeq (${DEBUG},)
16 CFLAGS += -O3 17 CFLAGS += -O3
17 else 18 else
18 CFLAGS += -O0 -g -DVBOOT_DEBUG 19 CFLAGS += -O0
20 endif
robotboy 2011/01/26 19:43:20 Won't these CFLAGS be overridden by the include of
Che-Liang Chiou 2011/01/27 02:12:53 They will if FIRMWARE_CONFIG_PATH is not empty. I
21
22 # Include compiler flags if provided. It is intended to override CC and CFLAGS
23 # that is set before. The CC and CFLAGS should not be overridden hereafter.
24 ifneq ($(FIRMWARE_CONFIG_PATH),)
25 include $(FIRMWARE_CONFIG_PATH)
26 endif
27
28 ifneq (${DEBUG},)
29 CFLAGS += -g -DVBOOT_DEBUG
19 endif 30 endif
20 31
21 ifeq (${DISABLE_NDEBUG},) 32 ifeq (${DISABLE_NDEBUG},)
22 CFLAGS += -DNDEBUG 33 CFLAGS += -DNDEBUG
23 endif 34 endif
24 35
25 export TOP = $(shell pwd) 36 export TOP = $(shell pwd)
26 export FWDIR=$(TOP)/firmware 37 export FWDIR=$(TOP)/firmware
27 export HOSTDIR=$(TOP)/host 38 export HOSTDIR=$(TOP)/host
28 ifeq ($(FIRMWARE_ARCH),) 39 ifeq ($(FIRMWARE_ARCH),)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 71
61 install: 72 install:
62 $(MAKE) -C utility install 73 $(MAKE) -C utility install
63 $(MAKE) -C cgpt install 74 $(MAKE) -C cgpt install
64 75
65 runtests: 76 runtests:
66 $(MAKE) -C tests runtests 77 $(MAKE) -C tests runtests
67 78
68 rbtest: 79 rbtest:
69 $(MAKE) -C tests rbtest 80 $(MAKE) -C tests rbtest
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698