summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJean THOMAS <virgule@jeanthomas.me>2022-10-11 17:54:30 +0200
committerFelix Singer <felixsinger@posteo.net>2022-10-15 18:17:38 +0000
commit001c87d9014b5b2dbb8adc9f64ab7023359a38b4 (patch)
tree3f9862342bc76f0c5ef0c5a916bb58c221224376 /Makefile
parent5d3b95bbaccb2453aeeaf6092e3a9f295c829271 (diff)
downloadflashrom-001c87d9014b5b2dbb8adc9f64ab7023359a38b4.tar.gz
flashrom-001c87d9014b5b2dbb8adc9f64ab7023359a38b4.tar.bz2
flashrom-001c87d9014b5b2dbb8adc9f64ab7023359a38b4.zip
dirtyjtag: Add DirtyJTAG programmer
Add a new programmer driver for the DirtyJTAG project (a USB-JTAG firmware for STM32 MCUs). Successfully tested with DirtyJTAG 1.4 running on an Olimex STM32-H103 development board and a SST25VF020B SPI flash chip. Change-Id: Ic43e9a014ed7d04e429e73b30c9dcfdde1a78913 Signed-off-by: Jean THOMAS <virgule@jeanthomas.me> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67878 Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f92cefdf7..a8df91f0a 100644
--- a/Makefile
+++ b/Makefile
@@ -161,6 +161,7 @@ DEPENDS_ON_LIBUSB1 := \
CONFIG_PICKIT2_SPI \
CONFIG_RAIDEN_DEBUG_SPI \
CONFIG_STLINKV3_SPI \
+ CONFIG_DIRTYJTAG_SPI \
DEPENDS_ON_LIBFTDI1 := \
CONFIG_FT2232_SPI \
@@ -521,6 +522,9 @@ CONFIG_CH341A_SPI ?= yes
# Digilent Development board JTAG
CONFIG_DIGILENT_SPI ?= yes
+# DirtyJTAG
+CONFIG_DIRTYJTAG_SPI ?= yes
+
# Disable J-Link for now.
CONFIG_JLINK_SPI ?= no
@@ -771,6 +775,11 @@ FEATURE_FLAGS += -D'CONFIG_DIGILENT_SPI=1'
PROGRAMMER_OBJS += digilent_spi.o
endif
+ifeq ($(CONFIG_DIRTYJTAG_SPI), yes)
+FEATURE_CFLAGS += -D'CONFIG_DIRTYJTAG_SPI=1'
+PROGRAMMER_OBJS += dirtyjtag_spi.o
+endif
+
ifeq ($(CONFIG_JLINK_SPI), yes)
FEATURE_FLAGS += -D'CONFIG_JLINK_SPI=1'
PROGRAMMER_OBJS += jlink_spi.o