diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2019-06-10 16:26:36 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-11 17:26:38 +0000 |
commit | 59d060ebfe68082f4ea87214ffcda976c55176af (patch) | |
tree | e237e25e9979220a716b72b65d43fb559504bc60 /core/riscv-rv32i/build.mk | |
parent | 3a668749460466ff002b5dd2cbf00529f97e5974 (diff) | |
download | chrome-ec-59d060ebfe68082f4ea87214ffcda976c55176af.tar.gz |
core:RISC-V / chip:IT83202
The IT83202 is an embedded controller with RISC-V core.
It supports maximum ram size to 256KB and internal flash to 1MB.
BUG=none
BRANCH=none
TEST=EC boots and test console commands (eg: taskinfo, version, sysjump...)
on it83202 EVB.
Change-Id: I424c0d2878beb941c816363b5c7a3f57fda9fd13
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1588300
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'core/riscv-rv32i/build.mk')
-rw-r--r-- | core/riscv-rv32i/build.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/core/riscv-rv32i/build.mk b/core/riscv-rv32i/build.mk new file mode 100644 index 0000000000..044678ab33 --- /dev/null +++ b/core/riscv-rv32i/build.mk @@ -0,0 +1,21 @@ +# -*- makefile -*- +# Copyright 2019 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. +# +# RISC-V core OS files build +# + +# TODO(b/133639441): Toolchain need to support 32-bit architecture or we +# will get the following error message: +# ABI is incompatible with that of the selected emulation: +# target emulation `elf64-littleriscv' does not match `elf32-littleriscv' +# Select RISC-V bare-metal toolchain +$(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_riscv),\ + /opt/coreboot-sdk/bin/riscv64-elf-) + +# CPU specific compilation flags +CFLAGS_CPU+=-march=rv32imafc -mabi=ilp32f -Os +LDFLAGS_EXTRA+=-mrelax + +core-y=cpu.o init.o panic.o task.o switch.o __builtin.o |