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

Side by Side Diff: Makefile

Issue 6396002: Revert "Import firmware compiler flags" (Closed) Base URL: http://git.chromium.org/git/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
7 6
8 export CC ?= gcc 7 export CC ?= gcc
9 export CXX ?= g++ 8 export CXX ?= g++
10 export CFLAGS 9 ifeq ($(FIRMWARE_ARCH),)
11 10 export CFLAGS = -Wall -Werror -DCHROMEOS_ENVIRONMENT
12 # Include compiler flags if provided. 11 else
13 # The CC and CFLAGS should not be overridden hereafter. 12 export CFLAGS = -Wall -Werror
14 ifneq ($(FIRMWARE_CONFIG_PATH),)
15 include $(FIRMWARE_CONFIG_PATH)
16 endif 13 endif
17 14
18 # Provides default optimization level if not set by FIRMWARE_CONFIG_PATH
19 ifeq (${DEBUG},) 15 ifeq (${DEBUG},)
20 CFLAGS ?= -O3 16 CFLAGS += -O3
21 else 17 else
22 CFLAGS ?= -O0 18 CFLAGS += -O0 -g -DVBOOT_DEBUG
23 endif
24
25 ifeq ($(FIRMWARE_ARCH),)
26 CFLAGS += -Wall -Werror -DCHROMEOS_ENVIRONMENT
27 else
28 CFLAGS += -Wall -Werror
29 endif
30
31 ifneq (${DEBUG},)
32 CFLAGS += -g -DVBOOT_DEBUG
33 endif 19 endif
34 20
35 ifeq (${DISABLE_NDEBUG},) 21 ifeq (${DISABLE_NDEBUG},)
36 CFLAGS += -DNDEBUG 22 CFLAGS += -DNDEBUG
37 endif 23 endif
38 24
39 export TOP = $(shell pwd) 25 export TOP = $(shell pwd)
40 export FWDIR=$(TOP)/firmware 26 export FWDIR=$(TOP)/firmware
41 export HOSTDIR=$(TOP)/host 27 export HOSTDIR=$(TOP)/host
42 ifeq ($(FIRMWARE_ARCH),) 28 ifeq ($(FIRMWARE_ARCH),)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 60
75 install: 61 install:
76 $(MAKE) -C utility install 62 $(MAKE) -C utility install
77 $(MAKE) -C cgpt install 63 $(MAKE) -C cgpt install
78 64
79 runtests: 65 runtests:
80 $(MAKE) -C tests runtests 66 $(MAKE) -C tests runtests
81 67
82 rbtest: 68 rbtest:
83 $(MAKE) -C tests rbtest 69 $(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