From 41f20c749ea694305a63cb2f4f4941109e2b8723 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Fri, 5 Nov 2021 10:19:42 +0100 Subject: Makefile: Rework NI-845x detection Since the NI-845x is a Windows only proprietary library, disable it by default. Use `HAS_LIB_NI845X=yes` to enable it. The default search path is `${PROGRAMFILES}\National Instruments\NI-845x\MS Visual C` and can be overwritten by `CONFIG_NI845X_LIBRARY_PATH`. Use `CONFIG_LIB_NI845X_CFLAGS` and `CONFIG_LIB_NI845X_LDFLAGS` for setting the cflags and ld flags manually. Change-Id: I918c3605a5ac168708a6a10fd92ee2a1aae9729b Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/59047 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- Makefile.include | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Makefile.include') diff --git a/Makefile.include b/Makefile.include index cd8ae7d7..cc76dd84 100644 --- a/Makefile.include +++ b/Makefile.include @@ -122,20 +122,3 @@ int main(int argc, char **argv) } endef export LIBJAYLINK_TEST - -define NI845X_TEST -#include - -int main(int argc, char **argv) -{ - (void) argc; - (void) argv; - char I2C_Device[256]; - NiHandle Dev_Handle; - uInt32 NumberFound = 0; - ni845xFindDevice(I2C_Device, &Dev_Handle, &NumberFound); - ni845xCloseFindDeviceHandle(Dev_Handle); - return 0; -} -endef -export NI845X_TEST -- cgit v1.2.3