mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
The behavior of GCC seems to have changed between 4.6 and 4.7, now it might generate unaligned memory accesses, so we need to explicitly set "-mno-unaligned-access". Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:16391 TEST=make BOARD=link dis, then check the generated assembly for keyboard_scan_init Change-Id: I326479a77d6319f1d74e17efe483f5cde56ff325 Reviewed-on: https://gerrit.chromium.org/gerrit/38758 Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
19 lines
551 B
Makefile
19 lines
551 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
|
|
#
|
|
|
|
# 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+=-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
|