mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
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>
This commit is contained in:

committed by
Nico Huber

parent
41f20c749e
commit
82524f8411
@ -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
|
||||
|
Reference in New Issue
Block a user