forked from MitchBradley/cforth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
213 lines (187 loc) · 6.83 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
[platformio]
description = CForth
default_envs = host_makename, host_meta, host_forth, host_makeccalls, target_makebi
include_dir = build/platformio
[env]
platform = native
build_flags = -m32 -DBITS32 -DNOSYSCALL -D_FORTIFY_SOURCE=0 -lm -Isrc/cforth -Isrc/lib -Isrc/app/host-serial -I/usr/i686-linux-gnu/include
; debian or ubuntu package libc6-dev-i386-cross is required to compile 32-bit
[env:host_makename]
build_src_filter = +<cforth/makename.c>
extra_scripts =
pre:scripts/m32.py
post:scripts/build-0-makename-post.py
; writes prims.h vars.h init.x
[env:host_meta]
build_src_filter = +<cforth/meta.c> +<cforth/compiler.c> +<cforth/io.c> +<cforth/dictfile.c> +<cforth/mallocl.c> +<cforth/lineedit.c> +<cforth/getc-kbd.c>
extra_scripts =
pre:scripts/m32.py
post:scripts/build-1-meta-post.py
; writes kernel.dic
[env:host_forth]
build_src_filter = +<cforth/main.c> +<cforth/io.c> +<cforth/nullbi.c> +<cforth/dictfile.c> +<cforth/mallocl.c> +<cforth/lineedit.c> +<cforth/linux-kbd.c> +<lib/sha256.c> +<cforth/forth.c> +<cforth/compiler.c> +<cforth/syscall.c> +<cforth/floatops.c> +<app/host-serial/extend-posix.c>
extra_scripts =
pre:scripts/m32.py
post:scripts/build-2-forth-post.py
; writes forth.dic
[env:host_makeccalls]
build_src_filter = +<cforth/makeccalls.c>
extra_scripts =
pre:scripts/m32.py
post:scripts/build-3-makeccalls-post.py
; writes app.dic (host)
[env:target_makebi]
build_src_filter = +<cforth/embed/makebi.c>
extra_scripts =
pre:scripts/m32.py
post:scripts/build-4-makebi-post.py
; writes app.dic (embed) dicthdr.h dict.h userarea.h
[target]
framework = arduino
build_src_filter = +<cforth/forth.c> +<cforth/compiler.c> +<cforth/syscall.c> +<cforth/floatops.c> +<cforth/lineedit.c> +<cforth/embed/consio.c> +<cforth/embed/startapp.c> +<cforth/embed/rodict.c> +<cforth/embed/mallocembed.c> +<platform/arduino/extend.c> +<app/embed-linux/tmain.c> +<app/embed-linux/tdate.c> +<app/arduino/main.cpp>
target_build_flags = -DBITS32 -DNOSYSCALL -lm -Isrc/cforth
build_src_flags = !scripts/build-5-target-date.py
[env:adafruit_feather_m0]
extends = target
platform = atmelsam
board = adafruit_feather_m0
build_flags = ${target.target_build_flags} -DMAXDICT=0x6000
[env:teensy31]
extends = target
platform = teensy
board = teensy31
build_flags = ${target.target_build_flags} -DMAXDICT=0x6000
[env:teensy32]
extends = target
platform = teensy
board = teensy31 ; is the same board as far as PlatformIO is concerned
build_flags = ${target.target_build_flags} -DMAXDICT=0x6000
[env:teensy35]
extends = target
platform = teensy
board = teensy35
build_flags = ${target.target_build_flags} -DMAXDICT=0x6000
[env:teensy36]
extends = target
platform = teensy
board = teensy36
build_flags = ${target.target_build_flags} -DMAXDICT=0x6000
[env:teensy40]
extends = target
platform = teensy
board = teensy40
build_flags = ${target.target_build_flags} -DMAXDICT=0x6000
[env:pico]
extends = target
platform = raspberrypi
board = pico
build_flags = ${target.target_build_flags} -DMAXDICT=0x30000
[env:esp01]
; this requires a smaller dictionary, because romdict is placed in dram,
; so before building cherry-pick f6a0abe ("esp01 - trim dictionary") or
; edit file src/cforth/load.fth and remove debug.fth cmdcom.fth locals.fth
; marker.fth environ.fth rstrace.fth sift.fth needs.fth callfind.fth
extends = target
platform = espressif8266
board = esp01
build_flags = ${target.target_build_flags} -DMAXDICT=0x2000
[env:featheresp32]
extends = target
platform = espressif32
board = featheresp32
build_flags = ${target.target_build_flags} -DMAXDICT=0x10000
; test environments for new new Raspberry Pi Pico platform / RP2350 boards
; requires some non-released code
; see https://arduino-pico.readthedocs.io/en/latest/platformio.html
; see https://community.platformio.org/t/anyone-had-success-with-rp2350-pico-2/42422/5?u=znmeb
;
; RP2040 boards I have
[env:arduino_nano_connect]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = arduino_nano_connect
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x30000
build_type = debug
[env:rpipico]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipico
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x30000
build_type = debug
[env:rpipicow]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipicow
framework = arduino
board_build.core = earlephilhower
; Pico W firmware needs more RAM
build_flags = ${target.target_build_flags} -DMAXDICT=0x2C000
build_type = debug
; FPGA development board with:
; - Raspberry Pi RP2040 processor
; - Lattice UltraPlus ICE40UP5K FPGA with 5.3k LUTs, 1Mb SPRAM, 120Kb DPRAM, 8 Multipliers
; https://pico-ice.tinyvision.ai/
;
; Forth engines exist for the FPGA!
[env:tinyvision_ai_pico_ice]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipico
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x30000
build_type = debug
; RP2350 boards that I have
; RP2350 has 0x80000 bytes of RAM!
[env:generic_rp2350]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = generic_rp2350
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x70000
build_type = debug
[env:challenger_2350_bconnect]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = challenger_2350_bconnect
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x70000
build_type = debug
[env:challenger_2350_wifi6_ble5]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = challenger_2350_wifi6_ble5
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x70000
build_type = debug
[env:sparkfun_promicrorp2350]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = sparkfun_promicrorp2350
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x70000
build_type = debug
[env:pimoroni_pico_plus_2]
extends = target
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pimoroni_pico_plus_2
framework = arduino
board_build.core = earlephilhower
build_flags = ${target.target_build_flags} -DMAXDICT=0x70000
build_type = debug