mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-17 04:14:42 +02:00
pickit2_spi: update to libusb1 and drop libusb0 dependency
TESTED: read, write, verify Change-Id: Icfc5372aa1789d35ed22d68297d5e68a74d40388 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/32213 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:

committed by
Nico Huber

parent
d2d3993a25
commit
b221cd7048
@@ -67,7 +67,6 @@ cargs = []
|
||||
deps = []
|
||||
srcs = []
|
||||
|
||||
need_libusb0 = false
|
||||
need_raw_access = false
|
||||
need_serial = false
|
||||
|
||||
@@ -91,6 +90,7 @@ else
|
||||
config_dediprog = false
|
||||
config_digilent_spi = false
|
||||
config_developerbox_spi = false
|
||||
config_pickit2_spi = false
|
||||
endif
|
||||
|
||||
# some programmers require libpci
|
||||
@@ -242,7 +242,6 @@ endif
|
||||
if config_pickit2_spi
|
||||
srcs += 'pickit2_spi.c'
|
||||
cargs += '-DCONFIG_PICKIT2_SPI=1'
|
||||
need_libusb0 = true
|
||||
endif
|
||||
if config_pony_spi
|
||||
srcs += 'pony_spi.c'
|
||||
@@ -293,11 +292,6 @@ if need_serial
|
||||
srcs += 'serial.c'
|
||||
endif
|
||||
|
||||
# raw deprecated and old USB library
|
||||
if need_libusb0
|
||||
deps += dependency('libusb')
|
||||
endif
|
||||
|
||||
prefix = get_option('prefix')
|
||||
sbindir = join_paths(prefix, get_option('sbindir'))
|
||||
libdir = join_paths(prefix, get_option('libdir'))
|
||||
|
Reference in New Issue
Block a user