diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2021-11-05 10:19:42 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-12-22 12:30:54 +0000 |
commit | 41f20c749ea694305a63cb2f4f4941109e2b8723 (patch) | |
tree | 8d6b22d5ace57bbbd46fa7f072c464a13cdc6a3a /Makefile.include | |
parent | 22e5af78fe1329facee9b843d500dba8385e1d0f (diff) | |
download | flashrom-41f20c749ea694305a63cb2f4f4941109e2b8723.tar.gz flashrom-41f20c749ea694305a63cb2f4f4941109e2b8723.tar.bz2 flashrom-41f20c749ea694305a63cb2f4f4941109e2b8723.zip |
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 <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/59047
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.include | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Makefile.include b/Makefile.include index cd8ae7d73..cc76dd846 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 <ni845x.h> - -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 |