diff options
Diffstat (limited to 'core/cortex-m0/build.mk')
-rw-r--r-- | core/cortex-m0/build.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/cortex-m0/build.mk b/core/cortex-m0/build.mk new file mode 100644 index 0000000000..6ee39c5669 --- /dev/null +++ b/core/cortex-m0/build.mk @@ -0,0 +1,17 @@ +# -*- makefile -*- +# Copyright (c) 2014 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-M0 core OS files build +# + +# Select ARMv6-m compatible bare-metal toolchain +CROSS_COMPILE?=arm-none-eabi- + +# CPU specific compilation flags +CFLAGS_CPU+=-mthumb -Os -mno-sched-prolog +CFLAGS_CPU+=-mno-unaligned-access + +core-y=cpu.o init.o panic.o switch.o task.o thumb_case.o div.o +core-$(CONFIG_WATCHDOG)+=watchdog.o |