1 ################################################################################
5 ################################################################################
7 IMX_UUC_VERSION
= 3440b1108373e79669cc17ba1d2be91a123a2053
8 IMX_UUC_SITE
= $(call github
,NXPmicro
,imx-uuc
,$(IMX_UUC_VERSION
))
9 IMX_UUC_LICENSE
= GPLv2
+
10 IMX_UUC_LICENSE_FILES
= COPYING
12 # mkfs.vfat is needed to create a FAT partition used by g_mass_storage
13 # so Windows do not offer to format the device when connected to the PC.
14 IMX_UUC_DEPENDENCIES
= host-dosfstools
16 define IMX_UUC_BUILD_CMDS
17 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) CC
=$(TARGET_CC
)
20 define IMX_UUC_INSTALL_TARGET_CMDS
21 $(INSTALL
) -D
-m
755 $(@D
)/uuc
$(TARGET_DIR
)/usr
/bin
/uuc
22 $(INSTALL
) -D
-m
755 $(@D
)/sdimage
$(TARGET_DIR
)/usr
/bin
/sdimage
23 dd if
=/dev
/zero of
=$(TARGET_DIR
)/fat bs
=1M count
=1
24 $(HOST_DIR
)/usr
/sbin
/mkfs.vfat
$(TARGET_DIR
)/fat
27 define IMX_UUC_INSTALL_INIT_SYSV
28 $(INSTALL
) -D
-m
0755 package
/freescale-imx
/imx-uuc
/S80imx-uuc \
29 $(TARGET_DIR
)/etc
/init.d
/S80imx-uuc
32 define IMX_UUC_INSTALL_INIT_SYSTEMD
33 $(INSTALL
) -D
-m
0644 package
/freescale-imx
/imx-uuc
/imx-uuc.service \
34 $(TARGET_DIR
)/usr
/lib
/systemd
/system
/imx-uuc.service
35 mkdir
-p
$(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
/
36 ln
-fs ..
/..
/..
/..
/usr
/lib
/systemd
/system
/imx-uuc.service \
37 $(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
/imx-uuc.service
40 $(eval
$(generic-package
))