Add support for STLINK V3 debugger/programmer via its SPI bridge
Change-Id: Icffab87ac8f2c570187ed753ec70f054541873a4
Signed-off-by: Miklós Márton <martonmiklosqdev@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/34661
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
diff --git a/meson.build b/meson.build
index b63875e..375089c 100644
--- a/meson.build
+++ b/meson.build
@@ -61,6 +61,7 @@
config_satasii = get_option('config_satasii')
config_serprog = get_option('config_serprog')
config_usbblaster_spi = get_option('config_usbblaster_spi')
+config_stlinkv3_spi = get_option('config_stlinkv3_spi')
cargs = []
deps = []
@@ -271,6 +272,10 @@
srcs += 'usbblaster_spi.c'
cargs += '-DCONFIG_USBBLASTER_SPI=1'
endif
+if config_stlinkv3_spi
+ srcs += 'stlinkv3_spi.c'
+ cargs += '-DCONFIG_STLINKV3_SPI=1'
+endif
# bitbanging SPI infrastructure
if config_bitbang_spi