mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 10:00:51 +00:00
Also fix a couple places where that makes it fail. BUG=none TEST=none Change-Id: I3b434b4bfa547a579193aac67c1a9d440a2c4e51
35 lines
1.3 KiB
Makefile
35 lines
1.3 KiB
Makefile
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Toolchain configuration build system
|
|
#
|
|
|
|
# Toolchain configuration
|
|
CROSS_COMPILE ?= arm-none-eabi-
|
|
HOST_CROSS_COMPILE ?= i686-pc-linux-gnu-
|
|
|
|
CC=$(CROSS_COMPILE)gcc
|
|
CPP=$(CROSS_COMPILE)cpp
|
|
LD=$(CROSS_COMPILE)ld
|
|
OBJCOPY=$(CROSS_COMPILE)objcopy
|
|
OBJDUMP=$(CROSS_COMPILE)objdump
|
|
BUILDCC?=gcc
|
|
HOSTCC?=$(HOST_CROSS_COMPILE)gcc
|
|
|
|
CFLAGS_WARN=-Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
-fno-strict-aliasing -fno-common \
|
|
-Werror-implicit-function-declaration -Wno-format-security \
|
|
-fno-delete-null-pointer-checks -Wdeclaration-after-statement \
|
|
-Wno-pointer-sign -fno-strict-overflow -fconserve-stack
|
|
CFLAGS_DEBUG= -g
|
|
CFLAGS_INCLUDE=$(foreach i,$(includes),-I$(i) )
|
|
CFLAGS_DEFINE=-DOUTDIR=$(out) -DCHIP=$(CHIP) -DTASKFILE=$(PROJECT).tasklist \
|
|
-DBOARD=$(BOARD) -DBOARD_$(BOARD) -DCORE=$(CORE) -DCHIP_$(CHIP)
|
|
CPPFLAGS=$(CFLAGS_DEFINE) $(CFLAGS_INCLUDE)
|
|
CFLAGS=$(CPPFLAGS) $(CFLAGS_CPU) $(CFLAGS_DEBUG) $(CFLAGS_WARN)
|
|
BUILD_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN)
|
|
HOST_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN)
|
|
LDFLAGS=-nostdlib -X
|
|
BUILD_LDFLAGS=-lftdi
|