summaryrefslogtreecommitdiff
path: root/core/cortex-m/build.mk
blob: 5abd25ba083b2f4e1539ad3abee62e043457fd70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- makefile -*-
# Copyright (c) 2012 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.
#
# Cortex-M4 core OS files build
#

# FPU compilation flags
CFLAGS_FPU-$(CONFIG_FPU)=-mfpu=fpv4-sp-d16 -mfloat-abi=hard

# CPU specific compilation flags
CFLAGS_CPU=-mcpu=cortex-m4 -mthumb -Os -mno-sched-prolog
CFLAGS_CPU+=$(CFLAGS_FPU-y)

core-y=init.o panic.o switch.o task.o timer.o
core-$(CONFIG_FPU)+=fpu.o