From 9469f81d8f8154e7e71890ca94aaee8d550093ac Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Fri, 5 Nov 2021 10:47:40 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/59049 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- Makefile.include | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'Makefile.include') diff --git a/Makefile.include b/Makefile.include index b81762ad..67eec529 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 -#include -int main(int argc, char **argv) -{ - (void)argc; - (void)argv; - libusb_init(NULL); - return 0; -} -endef -export LIBUSB1_TEST -- cgit v1.2.1