blob: cd92c5618f8d28a6ebb670afb879775c9e973130 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# -*- makefile -*-
# Copyright 2016 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Minute-IA core build
#
# FPU compilation flags
CFLAGS_FPU-$(CONFIG_FPU)=
# CPU specific compilation flags
CFLAGS_CPU+=-O2 -fomit-frame-pointer \
-ffunction-sections -fdata-sections \
-fno-builtin-printf -fno-builtin-sprintf \
-fno-stack-protector -gdwarf-2 -fno-common -ffreestanding \
-minline-all-stringops -fno-strict-aliasing
ifneq ($(cc-name),clang)
CFLAGS_CPU+=-mno-accumulate-outgoing-args
endif
CFLAGS_CPU+=$(CFLAGS_FPU-y)
ifneq ($(CONFIG_LTO),)
CFLAGS_CPU+=-flto
LDFLAGS_EXTRA+=-flto
endif
core-y=cpu.o init.o interrupts.o
core-$(CONFIG_COMMON_PANIC_OUTPUT)+=panic.o
core-$(CONFIG_COMMON_RUNTIME)+=switch.o task.o
core-$(CONFIG_MPU)+=mpu.o
# for 64bit division
LDFLAGS_EXTRA+=-static-libgcc -lgcc
|