Revert "Import firmware compiler flags"

This reverts commit 440ad516c4.

BUG=
TEST=

Review URL: http://codereview.chromium.org/6396002

Change-Id: I6b241e418cbba62c9dc82549f2a5c7a9485db1df
This commit is contained in:
Chris Sosa
2011-01-26 18:54:57 -08:00
parent 440ad516c4
commit 9f1973e271

View File

@@ -3,33 +3,19 @@
# found in the LICENSE file. # found in the LICENSE file.
export FIRMWARE_ARCH export FIRMWARE_ARCH
export FIRMWARE_CONFIG_PATH
export CC ?= gcc export CC ?= gcc
export CXX ?= g++ export CXX ?= g++
export CFLAGS
# Include compiler flags if provided.
# The CC and CFLAGS should not be overridden hereafter.
ifneq ($(FIRMWARE_CONFIG_PATH),)
include $(FIRMWARE_CONFIG_PATH)
endif
# Provides default optimization level if not set by FIRMWARE_CONFIG_PATH
ifeq (${DEBUG},)
CFLAGS ?= -O3
else
CFLAGS ?= -O0
endif
ifeq ($(FIRMWARE_ARCH),) ifeq ($(FIRMWARE_ARCH),)
CFLAGS += -Wall -Werror -DCHROMEOS_ENVIRONMENT export CFLAGS = -Wall -Werror -DCHROMEOS_ENVIRONMENT
else else
CFLAGS += -Wall -Werror export CFLAGS = -Wall -Werror
endif endif
ifneq (${DEBUG},) ifeq (${DEBUG},)
CFLAGS += -g -DVBOOT_DEBUG CFLAGS += -O3
else
CFLAGS += -O0 -g -DVBOOT_DEBUG
endif endif
ifeq (${DISABLE_NDEBUG},) ifeq (${DISABLE_NDEBUG},)