Split RISC-V targets into 32/64-bit
Этот коммит содержится в:
родитель
875d36cba0
коммит
34e0961a79
7 изменённых файлов: 20 добавлений и 71 удалений
|
@ -1,19 +1,5 @@
|
|||
{
|
||||
"inherits": ["riscv32"],
|
||||
"features": ["+a", "+c", "+m"],
|
||||
"build-tags": ["fe310", "sifive"],
|
||||
"llvm-target": "riscv32--none",
|
||||
"cflags": [
|
||||
"--target=riscv32--none",
|
||||
"-march=rv32imac",
|
||||
"-mabi=ilp32",
|
||||
"-Os",
|
||||
"-Werror",
|
||||
"-fno-exceptions", "-fno-unwind-tables",
|
||||
"-ffunction-sections", "-fdata-sections"
|
||||
],
|
||||
"ldflags": [
|
||||
"-melf32lriscv",
|
||||
"--gc-sections"
|
||||
]
|
||||
"build-tags": ["fe310", "sifive"]
|
||||
}
|
||||
|
|
|
@ -1,19 +1,5 @@
|
|||
{
|
||||
"inherits": ["riscv"],
|
||||
"inherits": ["riscv64"],
|
||||
"features": ["+a", "+c", "+m", "+f", "+d"],
|
||||
"build-tags": ["k210", "kendryte"],
|
||||
"llvm-target": "riscv64--none",
|
||||
"cflags": [
|
||||
"--target=riscv64--none",
|
||||
"-march=rv64gc",
|
||||
"-mabi=lp64d",
|
||||
"-Os",
|
||||
"-Werror",
|
||||
"-fno-exceptions", "-fno-unwind-tables",
|
||||
"-ffunction-sections", "-fdata-sections"
|
||||
],
|
||||
"ldflags": [
|
||||
"-melf64lriscv",
|
||||
"--gc-sections"
|
||||
]
|
||||
"build-tags": ["k210", "kendryte"]
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"inherits": ["k210"],
|
||||
"build-tags": ["maix-bit-mic"],
|
||||
"linkerscript": "targets/maix-bit-mic.ld",
|
||||
"flash-command": "kflash -p /dev/ttyUSB0 {hex}"
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
|
||||
MEMORY
|
||||
{
|
||||
FLASH_TEXT (rw) : ORIGIN = 0x80000000, LENGTH = (6 * 1024 * 1024)
|
||||
RAM (xrw) : ORIGIN = 0x80000000, LENGTH = (6 * 1024 * 1024)
|
||||
}
|
||||
|
||||
_stack_size = 2K;
|
||||
|
||||
INCLUDE "targets/riscv.ld"
|
6
targets/maixbit.json
Обычный файл
6
targets/maixbit.json
Обычный файл
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"inherits": ["k210"],
|
||||
"build-tags": ["maixbit"],
|
||||
"linkerscript": "targets/maixbit.ld",
|
||||
"flash-command": "kflash -p /dev/ttyUSB0 {hex}"
|
||||
}
|
11
targets/maixbit.ld
Обычный файл
11
targets/maixbit.ld
Обычный файл
|
@ -0,0 +1,11 @@
|
|||
|
||||
MEMORY
|
||||
{
|
||||
RAM (xrw) : ORIGIN = 0xffffffff80000000, LENGTH = 6M
|
||||
}
|
||||
|
||||
REGION_ALIAS("FLASH_TEXT", RAM);
|
||||
|
||||
_stack_size = 2K;
|
||||
|
||||
INCLUDE "targets/riscv.ld"
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
"goos": "linux",
|
||||
"goarch": "arm",
|
||||
"build-tags": ["tinygo.riscv", "baremetal", "linux", "arm"],
|
||||
"gc": "conservative",
|
||||
"compiler": "clang",
|
||||
"linker": "ld.lld",
|
||||
"rtlib": "compiler-rt",
|
||||
"libc": "picolibc",
|
||||
"cflags": [
|
||||
"-Os",
|
||||
"-Werror",
|
||||
"-fno-exceptions", "-fno-unwind-tables",
|
||||
"-ffunction-sections", "-fdata-sections"
|
||||
],
|
||||
"ldflags": [
|
||||
"--gc-sections"
|
||||
],
|
||||
"extra-files": [
|
||||
"src/device/riscv/start.S",
|
||||
"src/runtime/scheduler_tinygoriscv.S"
|
||||
],
|
||||
"gdb": "riscv64-unknown-elf-gdb"
|
||||
}
|
Загрузка…
Создание таблицы
Сослаться в новой задаче