mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
This is preparatory work to introduce a second core architecture. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:23574 TEST=./util/make_all.sh Change-Id: Icae8a7e475a4ba2a13f0d8f95629e8498a5a61da Reviewed-on: https://chromium-review.googlesource.com/175419 Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
23 lines
631 B
Makefile
23 lines
631 B
Makefile
# -*- 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
|
|
#
|
|
|
|
# Select ARMv7-m bare-metal toolchain
|
|
CROSS_COMPILE?=arm-none-eabi-
|
|
|
|
# FPU compilation flags
|
|
CFLAGS_FPU-$(CONFIG_FPU)=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
|
|
|
|
# CPU specific compilation flags
|
|
CFLAGS_CPU+=-mthumb -Os -mno-sched-prolog
|
|
CFLAGS_CPU+=-mno-unaligned-access
|
|
CFLAGS_CPU+=$(CFLAGS_FPU-y)
|
|
|
|
core-y=cpu.o init.o panic.o switch.o task.o timer.o
|
|
core-$(CONFIG_WATCHDOG)+=watchdog.o
|
|
core-$(CONFIG_MPU)+=mpu.o
|