From 82524f84116886da2f62178bddd7d1a0699f8d9e Mon Sep 17 00:00:00 2001
From: Thomas Heijligen <thomas.heijligen@secunet.com>
Date: Fri, 5 Nov 2021 10:34:31 +0100
Subject: Makefile: Make pkg-config mandatory to find libjaylink

Use `make HAS_LIBJAYLINK=yes/no` to override the pkg-config detection
and `CONFIG_LIBJAYLINK_CFLAGS` and `CONFIG_LIBJAYLINK_LDFLAGS` to set
cflags and ldflags manually.

Change-Id: I99df547046bb9820ab502f89f6d4452c1bc0cfd4
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/59048
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
---
 Makefile.include | 18 ------------------
 1 file changed, 18 deletions(-)

(limited to 'Makefile.include')

diff --git a/Makefile.include b/Makefile.include
index cc76dd84..b81762ad 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -104,21 +104,3 @@ int main(int argc, char **argv)
 }
 endef
 export LIBUSB1_TEST
-
-define LIBJAYLINK_TEST
-#include <stddef.h>
-#include <libjaylink/libjaylink.h>
-int main(int argc, char **argv)
-{
-	struct jaylink_context *ctx;
-
-	(void)argc;
-	(void)argv;
-
-	jaylink_init(&ctx);
-	jaylink_exit(ctx);
-
-	return 0;
-}
-endef
-export LIBJAYLINK_TEST
-- 
cgit v1.2.3