summaryrefslogtreecommitdiffstats
path: root/Makefile.include
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2021-11-05 10:47:40 +0100
committerNico Huber <nico.h@gmx.de>2021-12-22 12:31:13 +0000
commit9469f81d8f8154e7e71890ca94aaee8d550093ac (patch)
tree8d49ffa5a96a6c8aa8d45ea2de2904081ab22f10 /Makefile.include
parent82524f84116886da2f62178bddd7d1a0699f8d9e (diff)
downloadflashrom-9469f81d8f8154e7e71890ca94aaee8d550093ac.tar.gz
flashrom-9469f81d8f8154e7e71890ca94aaee8d550093ac.tar.bz2
flashrom-9469f81d8f8154e7e71890ca94aaee8d550093ac.zip
Makefile: Make pkg-config mandatory to find libusb1
Use `make HAS_LIBUSB1=yes/no` to override the pkg-config detection and `CONFIG_LIBUSB1_CFLAGS` and `CONFIG_LIBUSB1_LDFLAGS` to set cflags and ldflags manually. Change-Id: I4f24be647d25dde24c41514f8964b7134205867c Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/59049 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile.include')
-rw-r--r--Makefile.include13
1 files changed, 0 insertions, 13 deletions
diff --git a/Makefile.include b/Makefile.include
index b81762adc..67eec5292 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -91,16 +91,3 @@ int main(int argc, char **argv)
}
endef
export PCI_GET_DEV_TEST
-
-define LIBUSB1_TEST
-#include <stddef.h>
-#include <libusb.h>
-int main(int argc, char **argv)
-{
- (void)argc;
- (void)argv;
- libusb_init(NULL);
- return 0;
-}
-endef
-export LIBUSB1_TEST