kumquat-buildroot/package/mfgtools/mfgtools.mk
Julien Olivain a03e57ccbf package/mfgtools: update URLs to NXPmicro github organization
mfgtools was removed from the github codeauroraforum organization.
It is now redirecting to NXPmicro. This patch updates the link to
directly point to the correct place.

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-12-31 17:22:54 +01:00

35 lines
1.1 KiB
Makefile

################################################################################
#
# mfgtools
#
################################################################################
MFGTOOLS_VERSION = 0.02
MFGTOOLS_SITE = $(call github,NXPmicro,mfgtools,v$(MFGTOOLS_VERSION))
MFGTOOLS_SUBDIR = MfgToolLib
MFGTOOLS_LICENSE = BSD-3-Clause or CPOL
MFGTOOLS_LICENSE_FILES = LICENSE README.txt
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)/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)/lib/libMfgToolLib.so
$(INSTALL) -D -m 755 $(@D)/TestPrgm/mfgtoolcli \
$(HOST_DIR)/bin/mfgtoolcli
endef
$(eval $(host-cmake-package))