2016-10-26 18:08:02 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mfgtools
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-12-26 14:19:21 +01:00
|
|
|
MFGTOOLS_VERSION = v0.02
|
|
|
|
MFGTOOLS_SITE = $(call github,codeauroraforum,mfgtools,$(MFGTOOLS_VERSION))
|
2016-10-26 18:08:02 +02:00
|
|
|
MFGTOOLS_SUBDIR = MfgToolLib
|
2017-03-30 15:43:38 +02:00
|
|
|
MFGTOOLS_LICENSE = BSD-3-Clause or CPOL
|
2017-12-26 14:19:21 +01:00
|
|
|
MFGTOOLS_LICENSE_FILES = LICENSE README.txt
|
2016-10-26 18:08:02 +02:00
|
|
|
HOST_MFGTOOLS_DEPENDENCIES = host-libusb
|
|
|
|
|
|
|
|
HOST_MFGTOOLS_CFLAGS = \
|
|
|
|
$(HOST_CFLAGS) $(HOST_LDFLAGS) -std=c++11 -lpthread \
|
|
|
|
-L$(@D)/MfgToolLib -lMfgToolLib -I$(@D)/MfgToolLib \
|
2017-07-05 13:14:22 +02:00
|
|
|
-lusb-1.0 -I$(HOST_DIR)/include/libusb-1.0 \
|
2016-10-26 18:08:02 +02:00
|
|
|
-fpermissive -Wno-write-strings
|
|
|
|
|
|
|
|
define HOST_MFGTOOLS_CLI_BUILD
|
|
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) CC="$(HOSTCXX)" \
|
|
|
|
CFLAGS="$(HOST_MFGTOOLS_CFLAGS)" -C $(@D)/TestPrgm
|
|
|
|
endef
|
|
|
|
|
|
|
|
HOST_MFGTOOLS_POST_BUILD_HOOKS += HOST_MFGTOOLS_CLI_BUILD
|
|
|
|
|
|
|
|
define HOST_MFGTOOLS_INSTALL_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/MfgToolLib/libMfgToolLib.so \
|
2017-07-05 13:14:21 +02:00
|
|
|
$(HOST_DIR)/lib/libMfgToolLib.so
|
2016-10-26 18:08:02 +02:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/TestPrgm/mfgtoolcli \
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/mfgtoolcli
|
2016-10-26 18:08:02 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-cmake-package))
|