|
|
0161dc |
From: Marc Schink <dev@zapb.de>
|
|
|
0161dc |
Date: Tue, 8 Dec 2020 22:20:50 +0100
|
|
|
0161dc |
Subject: [PATCH] meson: Add missing config option for J-Link SPI
|
|
|
0161dc |
|
|
|
0161dc |
Signed-off-by: Marc Schink <dev@zapb.de>
|
|
|
0161dc |
Change-Id: I476c649f9db7342688560aac9ee5df056517a028
|
|
|
0161dc |
Reviewed-on: https://review.coreboot.org/c/flashrom/+/48478
|
|
|
0161dc |
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
|
|
|
0161dc |
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
|
|
|
0161dc |
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
|
|
|
0161dc |
|
|
|
0161dc |
diff --git a/meson.build b/meson.build
|
|
|
0161dc |
index cf91ef4..878cac3 100644
|
|
|
0161dc |
--- a/meson.build
|
|
|
0161dc |
+++ b/meson.build
|
|
|
0161dc |
@@ -38,6 +38,7 @@ config_ch341a_spi = get_option('config_ch341a_spi')
|
|
|
0161dc |
config_dediprog = get_option('config_dediprog')
|
|
|
0161dc |
config_developerbox_spi = get_option('config_developerbox_spi')
|
|
|
0161dc |
config_digilent_spi = get_option('config_digilent_spi')
|
|
|
0161dc |
+config_jlink_spi = get_option('config_jlink_spi')
|
|
|
0161dc |
config_drkaiser = get_option('config_drkaiser')
|
|
|
0161dc |
config_dummy = get_option('config_dummy')
|
|
|
0161dc |
config_ft2232_spi = get_option('config_ft2232_spi')
|
|
|
0161dc |
@@ -152,6 +153,11 @@ if config_digilent_spi
|
|
|
0161dc |
srcs += 'digilent_spi.c'
|
|
|
0161dc |
cargs += '-DCONFIG_DIGILENT_SPI=1'
|
|
|
0161dc |
endif
|
|
|
0161dc |
+if config_jlink_spi
|
|
|
0161dc |
+ srcs += 'jlink_spi.c'
|
|
|
0161dc |
+ cargs += '-DCONFIG_JLINK_SPI=1'
|
|
|
0161dc |
+ deps += dependency('libjaylink')
|
|
|
0161dc |
+endif
|
|
|
0161dc |
if config_drkaiser
|
|
|
0161dc |
srcs += 'drkaiser.c'
|
|
|
0161dc |
cargs += '-DCONFIG_DRKAISER=1'
|
|
|
0161dc |
diff --git a/meson_options.txt b/meson_options.txt
|
|
|
0161dc |
index ea87311..f253f26 100644
|
|
|
0161dc |
--- a/meson_options.txt
|
|
|
0161dc |
+++ b/meson_options.txt
|
|
|
0161dc |
@@ -9,6 +9,7 @@ option('config_ch341a_spi', type : 'boolean', value : true, description : 'Winch
|
|
|
0161dc |
option('config_dediprog', type : 'boolean', value : true, description : 'Dediprog SF100')
|
|
|
0161dc |
option('config_developerbox_spi', type : 'boolean', value : true, description : 'Developerbox emergency recovery')
|
|
|
0161dc |
option('config_digilent_spi', type : 'boolean', value : true, description : 'Digilent Development board JTAG')
|
|
|
0161dc |
+option('config_jlink_spi', type : 'boolean', value : false, description : 'SEGGER J-Link and compatible devices')
|
|
|
0161dc |
option('config_drkaiser', type : 'boolean', value : true, description : 'Dr. Kaiser')
|
|
|
0161dc |
option('config_dummy', type : 'boolean', value : true, description : 'dummy tracing')
|
|
|
0161dc |
option('config_ft2232_spi', type : 'boolean', value : true, description : 'FT2232 SPI dongles')
|