mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-16 18:11:22 +00:00
Cr50 lacks native instructions for 64-bit integers and an ABI function can be used by the compiler to take the place of the needed instructions. This CL adds support for a right bitwise shift of 64-bit integers. BRANCH=none BUG=chromium:794010 TEST=Set CONFIG_LLSR_TEST, build, update cr50, and run llsrtest on the console. Change-Id: Iae66c86720c531454ba29f15b3cc6a07959f5ef2 Signed-off-by: Allen Webb <allenwebb@google.com> Reviewed-on: https://chromium-review.googlesource.com/931932 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
30 lines
826 B
Makefile
30 lines
826 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
|
|
$(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_arm),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)
|
|
|
|
ifneq ($(CONFIG_LTO),)
|
|
CFLAGS_CPU+=-flto
|
|
LDFLAGS_EXTRA+=-flto
|
|
endif
|
|
|
|
core-y=cpu.o init.o ldivmod.o llsr.o uldivmod.o
|
|
core-$(CONFIG_COMMON_PANIC_OUTPUT)+=panic.o
|
|
core-$(CONFIG_COMMON_RUNTIME)+=switch.o task.o
|
|
core-$(CONFIG_WATCHDOG)+=watchdog.o
|
|
core-$(CONFIG_MPU)+=mpu.o
|