
It was `avr-atmel-none`, which is incorrect. It must be `avr-unknown-unknown`. Additionally, there is no reason to specify the target triple per chip, it can be done for all AVR chips at once as it doesn't vary like Cortex-M chips.
17 строки
342 Б
JSON
17 строки
342 Б
JSON
{
|
|
"llvm-target": "avr-unknown-unknown",
|
|
"build-tags": ["avr", "baremetal", "linux", "arm"],
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"compiler": "avr-gcc",
|
|
"gc": "conservative",
|
|
"linker": "avr-gcc",
|
|
"scheduler": "none",
|
|
"ldflags": [
|
|
"-T", "targets/avr.ld",
|
|
"-Wl,--gc-sections"
|
|
],
|
|
"extra-files": [
|
|
"src/runtime/scheduler_avr.S"
|
|
]
|
|
}
|