mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Implement enable_fpu() and disable_fpu(). enable_fpu() disables interrupt and then enables FPU. disable_fpu() disables FPU and enables interrupt. Also added a CONFIG_FPU flag. BUG=chrome-os-partner:7920 TEST=none Change-Id: I2d71f396d9c7d7ac4a6a2d525f3d86f8aae87521 Signed-off-by: Vic Yang <victoryang@chromium.org>
17 lines
482 B
Makefile
17 lines
482 B
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
|