diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2013-10-31 16:49:01 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-11-07 22:36:05 +0000 |
commit | 03de7bee72cb5111b767cc54b8b52b379293e58f (patch) | |
tree | fba632cf8685ac1b4b135f9f2e894c8efe733fa6 /core | |
parent | e2f851aae244c0c233064192c79f46fe0744e58f (diff) | |
download | chrome-ec-03de7bee72cb5111b767cc54b8b52b379293e58f.tar.gz |
Move core-specific toolchain configuration to core/ directory
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m/build.mk | 3 | ||||
-rw-r--r-- | core/cortex-m/config_core.h | 13 | ||||
-rw-r--r-- | core/cortex-m/ec.lds.S | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/core/cortex-m/build.mk b/core/cortex-m/build.mk index c3ae55a521..d90b36f9ab 100644 --- a/core/cortex-m/build.mk +++ b/core/cortex-m/build.mk @@ -6,6 +6,9 @@ # 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 diff --git a/core/cortex-m/config_core.h b/core/cortex-m/config_core.h new file mode 100644 index 0000000000..7f3d253427 --- /dev/null +++ b/core/cortex-m/config_core.h @@ -0,0 +1,13 @@ +/* Copyright (c) 2013 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. + */ + +#ifndef __CONFIG_CORE_H +#define __CONFIG_CORE_H + +/* Linker binary architecture and format */ +#define BFD_ARCH arm +#define BFD_FORMAT "elf32-littlearm" + +#endif /* __CONFIG_CORE_H */ diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index 6d858abd15..093b47bb20 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -11,8 +11,8 @@ #define FW_SIZE(section) FW_SIZE_(section) -OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") -OUTPUT_ARCH(arm) +OUTPUT_FORMAT(BFD_FORMAT, BFD_FORMAT, BFD_FORMAT) +OUTPUT_ARCH(BFD_ARCH) ENTRY(reset) MEMORY { |