
The -Qunused-arguments flag disables the warning where some flags are not relevant to a compilation. This commonly happens when compiling assembly files (.s or .S files) because some flags are specific to C and not relevant to assembly. Because practically all baremetal targets need some form of assembly, this flag is added to most CFlags. This creates a lot of noise. And it is also added for compiling C code where it might hide bugs (by hiding the fact a flag is actually unused). This commit adds the flag to all assembly compilations and removes them from all target JSON files.
18 строки
423 Б
JSON
18 строки
423 Б
JSON
{
|
|
"inherits": ["cortex-m"],
|
|
"llvm-target": "armv7em-none-eabi",
|
|
"cpu": "cortex-m4",
|
|
"build-tags": ["teensy36", "teensy", "mk66f18", "nxp"],
|
|
"cflags": [
|
|
"--target=armv7em-none-eabi",
|
|
"-mfloat-abi=hard",
|
|
"-mfpu=fpv4-sp-d16"
|
|
],
|
|
"linkerscript": "targets/nxpmk66f18.ld",
|
|
"extra-files": [
|
|
"src/device/nxp/mk66f18.s",
|
|
"targets/teensy36.s"
|
|
],
|
|
"flash-command": "teensy_loader_cli -mmcu=mk66fx1m0 -v -w {hex}"
|
|
}
|
|
|