kumquat-buildroot/package/mfgtools/mfgtools.mk
Gary Bisson 5debaf1beb mfgtools: new package
This package contains the Freescale manufacturing tool.
It is designed to program firmware to i.MX boards during production.
The communication is done over USB using the Freescale UTP protocol.

The project is maintained on NXPMicro Github repository:
https://github.com/NXPmicro/mfgtools

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
[Thomas:
 - remove dependency on host-cmake, this is handled by the
   host-cmake-package infrastructure
 - add quotes around $(HOSTCXX)
 - add CPOL.htm to <pkg>_LICENSE_FILES.
 - tweaks to the readme.txt file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-10-26 21:26:20 +02:00

35 lines
1.1 KiB
Makefile

################################################################################
#
# mfgtools
#
################################################################################
MFGTOOLS_VERSION = b219fc219a35c365010897ed093c40750f8cdac6
MFGTOOLS_SITE = $(call github,NXPmicro,mfgtools,$(MFGTOOLS_VERSION))
MFGTOOLS_SUBDIR = MfgToolLib
MFGTOOLS_LICENSE = BSD-3c or CPOL
MFGTOOLS_LICENSE_FILES = LICENSE CPOL.htm
HOST_MFGTOOLS_DEPENDENCIES = host-libusb
HOST_MFGTOOLS_CFLAGS = \
$(HOST_CFLAGS) $(HOST_LDFLAGS) -std=c++11 -lpthread \
-L$(@D)/MfgToolLib -lMfgToolLib -I$(@D)/MfgToolLib \
-lusb-1.0 -I$(HOST_DIR)/usr/include/libusb-1.0 \
-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 \
$(HOST_DIR)/usr/lib/libMfgToolLib.so
$(INSTALL) -D -m 755 $(@D)/TestPrgm/mfgtoolcli \
$(HOST_DIR)/usr/bin/mfgtoolcli
endef
$(eval $(host-cmake-package))