Skip to content

Commit 9d7800c

Browse files
committed
openocd fix at91rm9200 on windows
1 parent 084bc80 commit 9d7800c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

build-assets/scripts/dependencies/openocd.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ function openocd_build()
167167
# Add explicit functionality.
168168
config_options+=("--enable-aice")
169169
config_options+=("--enable-armjtagew")
170-
config_options+=("--enable-at91rm9200")
171170
config_options+=("--enable-bcm2835gpio")
172171
config_options+=("--enable-cmsis-dap")
173172
config_options+=("--enable-dummy")
@@ -195,7 +194,6 @@ function openocd_build()
195194
config_options+=("--enable-xds110")
196195

197196
# Disable drivers that apparently failed to build on all platforms.
198-
config_options+=("--disable-ep93xx")
199197
config_options+=("--disable-zy1000-master")
200198
config_options+=("--disable-zy1000")
201199
config_options+=("--disable-ioutil")
@@ -222,8 +220,9 @@ function openocd_build()
222220
# cannot be used by x86_64-pc-linux-gnu hosts
223221
# config_options+=("--enable-parport-giveio")
224222

225-
# --enable-sysfsgpio -> available only on Linux
226-
config_options+=("--disable-sysfsgpio")
223+
config_options+=("--disable-at91rm9200")
224+
config_options+=("--disable-ep93xx")
225+
227226
# --enable-buspirate -> not supported on mingw
228227
config_options+=("--disable-buspirate")
229228

@@ -232,6 +231,9 @@ function openocd_build()
232231

233232
config_options+=("--disable-parport-ppdev")
234233

234+
# --enable-sysfsgpio -> available only on Linux
235+
config_options+=("--disable-sysfsgpio")
236+
235237
elif [ "${XBB_HOST_PLATFORM}" == "linux" ]
236238
then
237239

@@ -242,6 +244,7 @@ function openocd_build()
242244
# --enable-usb_blaster_libftdi -> --enable-usb_blaster
243245

244246
config_options+=("--enable-amtjtagaccel")
247+
config_options+=("--enable-at91rm9200")
245248
config_options+=("--enable-buspirate")
246249
config_options+=("--enable-ep93xx")
247250
config_options+=("--enable-gw16012")
@@ -269,6 +272,7 @@ function openocd_build()
269272
# --enable-presto_libftdi -> --enable-presto
270273
# --enable-usb_blaster_libftdi -> --enable-usb_blaster
271274

275+
config_options+=("--enable-at91rm9200")
272276
config_options+=("--enable-buspirate")
273277
config_options+=("--enable-ep93xx")
274278

0 commit comments

Comments
 (0)