-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
83 lines (76 loc) · 1.66 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
core_dir=platformio
[env:qemu]
platform = virt_riscv
board = qemu-hifive1
board_build.ldscript = ${platformio.src_dir}/linker.lds
; -Os
build_flags =
-std=c++20
-g
-Wall
-ffunction-sections
-fcoroutines
-fno-exceptions
-fno-rtti
-fno-nonansi-builtins
-fno-use-cxa-atexit
-fno-threadsafe-statics
-nostartfiles
-Wl,-Map,c-hardware-access-riscv.map
extra_scripts = post_build.py
targets=disasm
debug_tool=qemu
debug_init_cmds=
target remote :42123
load
test_framework=unity
[env:spike]
platform = virt_riscv
board = spike-hifive1
board_build.ldscript = ${platformio.src_dir}/linker.lds
; -Os
build_flags =
-std=c++20
-g
-Wall
-ffunction-sections
-fcoroutines
-fno-exceptions
-fno-rtti
-fno-nonansi-builtins
-fno-use-cxa-atexit
-fno-threadsafe-statics
-nostartfiles
-Wl,-Map,c-hardware-access-riscv.map
extra_scripts = post_build.py
targets=disasm
debug_tool=vcd_spike
debug_init_cmds=
target remote :3333
load
test_framework=unity
[env:host_emulation]
platform=native
build_flags =
-std=c++20
-fcoroutines
-O2
-g
-Wall
-DHOST_EMULATION
-D__riscv_xlen=32
test_dir=test/
test_filter=test/test_*.cpp
test_framework=unity
debug_test=test_single_coroutine
debug_tool = custom