
This page has been a big help in adding support for this new chip: https://wiki.osdev.org/HiFive-1_Bare_Bones
25 строки
505 Б
JSON
25 строки
505 Б
JSON
{
|
|
"llvm-target": "riscv32--none",
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"build-tags": ["tinygo.riscv", "linux", "arm"],
|
|
"gc": "conservative",
|
|
"compiler": "riscv64-unknown-elf-gcc",
|
|
"linker": "riscv64-unknown-elf-ld",
|
|
"cflags": [
|
|
"-march=rv32imac",
|
|
"-mabi=ilp32",
|
|
"-Os",
|
|
"-Werror",
|
|
"-nostdinc",
|
|
"-fno-exceptions", "-fno-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections"
|
|
],
|
|
"ldflags": [
|
|
"-melf32lriscv",
|
|
"--gc-sections"
|
|
],
|
|
"extra-files": [
|
|
"src/device/riscv/start.S"
|
|
]
|
|
}
|