1 ################################################################################
5 ################################################################################
7 MFGTOOLS_VERSION
= b219fc219a35c365010897ed093c40750f8cdac6
8 MFGTOOLS_SITE
= $(call github
,NXPmicro
,mfgtools
,$(MFGTOOLS_VERSION
))
9 MFGTOOLS_SUBDIR
= MfgToolLib
10 MFGTOOLS_LICENSE
= BSD-3c or CPOL
11 MFGTOOLS_LICENSE_FILES
= LICENSE CPOL.htm
12 HOST_MFGTOOLS_DEPENDENCIES
= host-libusb
14 HOST_MFGTOOLS_CFLAGS
= \
15 $(HOST_CFLAGS
) $(HOST_LDFLAGS
) -std
=c
++11 -lpthread \
16 -L
$(@D
)/MfgToolLib
-lMfgToolLib
-I
$(@D
)/MfgToolLib \
17 -lusb-1.0
-I
$(HOST_DIR
)/usr
/include/libusb-1.0 \
18 -fpermissive
-Wno-write-strings
20 define HOST_MFGTOOLS_CLI_BUILD
21 $(HOST_CONFIGURE_OPTS
) $(MAKE
) CC
="$(HOSTCXX)" \
22 CFLAGS
="$(HOST_MFGTOOLS_CFLAGS)" -C
$(@D
)/TestPrgm
25 HOST_MFGTOOLS_POST_BUILD_HOOKS
+= HOST_MFGTOOLS_CLI_BUILD
27 define HOST_MFGTOOLS_INSTALL_CMDS
28 $(INSTALL
) -D
-m
755 $(@D
)/MfgToolLib
/libMfgToolLib.so \
29 $(HOST_DIR
)/usr
/lib
/libMfgToolLib.so
30 $(INSTALL
) -D
-m
755 $(@D
)/TestPrgm
/mfgtoolcli \
31 $(HOST_DIR
)/usr
/bin
/mfgtoolcli
34 $(eval
$(host-cmake-package
))