mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 11:15:13 +00:00
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:
26
Makefile
26
Makefile
@@ -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},)
|
||||||
|
|||||||
Reference in New Issue
Block a user