mirror of
https://review.coreboot.org/flashrom.git
synced 2025-11-14 03:30:41 +01:00
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>
This commit is contained in:
committed by
Nico Huber
parent
22e5af78fe
commit
41f20c749e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user