mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 00:21:46 +00:00
- We have more flash space to use with nds32 toolchain GCC6.3.0, so we enable a few console commands that were disabled previously. And we also enable LTO to reduce the size of FW image. - Put "__wait_evt" function into ram_code section to fill the gap of flash and improving performance of code-fetch. BUG=none BRANCH=none TEST=boot to kernel on reef_it8320. Change-Id: I3b745ff80a57ef1163794864c39c22f7e1f86634 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/788712 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Randall Spangler <rspangler@chromium.org>
25 lines
710 B
Makefile
25 lines
710 B
Makefile
# -*- makefile -*-
|
|
# Copyright (c) 2013 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.
|
|
#
|
|
# Andestar v3m architecture core OS files build
|
|
#
|
|
|
|
# Set coreboot-sdk as the default toolchain for nds32
|
|
NDS32_DEFAULT_COMPILE=/opt/coreboot-sdk/bin/nds32le-elf-
|
|
|
|
# Select Andes bare-metal toolchain
|
|
$(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_nds32),$(NDS32_DEFAULT_COMPILE))
|
|
|
|
# CPU specific compilation flags
|
|
CFLAGS_CPU+=-march=v3m -Os
|
|
|
|
ifneq ($(CONFIG_LTO),)
|
|
CFLAGS_CPU+=-flto
|
|
LDFLAGS_EXTRA+=-flto
|
|
endif
|
|
|
|
core-y=cpu.o init.o panic.o task.o switch.o __muldi3.o math.o __builtin.o
|
|
core-$(CONFIG_FPU)+=__libsoftfpu.o
|