2016-04-13 12:40:52 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# imx-uuc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-07-07 15:55:33 +02:00
|
|
|
IMX_UUC_VERSION = fc48b497fe961d601b4bcced807f562090854ec9
|
2018-11-12 10:44:02 +01:00
|
|
|
IMX_UUC_SITE = $(call github,NXPmicro,imx-uuc,$(IMX_UUC_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
IMX_UUC_LICENSE = GPL-2.0+
|
2016-04-13 12:40:52 +02:00
|
|
|
IMX_UUC_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
# mkfs.vfat is needed to create a FAT partition used by g_mass_storage
|
|
|
|
# so Windows do not offer to format the device when connected to the PC.
|
|
|
|
IMX_UUC_DEPENDENCIES = host-dosfstools
|
|
|
|
|
|
|
|
define IMX_UUC_BUILD_CMDS
|
2019-07-07 15:55:32 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
|
2016-04-13 12:40:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IMX_UUC_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/uuc $(TARGET_DIR)/usr/bin/uuc
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/sdimage $(TARGET_DIR)/usr/bin/sdimage
|
2018-11-18 20:35:12 +01:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/ufb $(TARGET_DIR)/usr/bin/ufb
|
2016-04-13 12:40:52 +02:00
|
|
|
dd if=/dev/zero of=$(TARGET_DIR)/fat bs=1M count=1
|
2017-07-05 13:14:20 +02:00
|
|
|
$(HOST_DIR)/sbin/mkfs.vfat $(TARGET_DIR)/fat
|
2016-04-13 12:40:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IMX_UUC_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/freescale-imx/imx-uuc/S80imx-uuc \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S80imx-uuc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define IMX_UUC_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0644 package/freescale-imx/imx-uuc/imx-uuc.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/imx-uuc.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|