-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverify.ps1
23 lines (22 loc) · 1.14 KB
/
verify.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$includes = @(
"-I./",
"-I./Arduino/data/packages/arduino/tools/arm-none-eabi-gcc",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/variants/MINIMA",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/libraries/Arduino_CAN/src",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/libraries",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/cores/arduino/api/tinyusb",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/cores/arduino/api/deprecated",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/cores/arduino/api/deprecated-avr-comp",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/cores/arduino/api",
"-I./Arduino/data/packages/arduino/hardware/renesas_uno/1.1.0/cores/arduino",
"-I./Arduino/user",
"-I./Arduino/data/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include"
)
$buildProperties = $includes -join " "
$fqbn = "arduino:renesas_uno:minima"
arduino-cli compile `
--build-path build `
--log `
--config-file arduino-cli.yaml `
--fqbn $fqbn `
--build-property "compiler.cpp.extra_flags=$buildProperties"