update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_IMX_UUC
|
||||
bool "imx-uuc"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_arm # Only relevant for i.MX
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_HOST_DOSFSTOOLS
|
||||
help
|
||||
This package provides the Universal Adapter user-space
|
||||
utility that is used to receive commands from the
|
||||
Manufacturing Tool using the Freescale UTP Protocol.
|
||||
|
||||
It requires a Freescale/NXP kernel whose configuration
|
||||
contains the CONFIG_FSL_UTP option.
|
||||
|
||||
This package is provided by Freescale/NXP as-is and doesn't
|
||||
have an upstream.
|
||||
|
||||
comment "imx-uuc needs a toolchain w/ threads"
|
||||
depends on BR2_arm
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
NAME=uuc
|
||||
DAEMON=/usr/bin/$NAME
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting $NAME: "
|
||||
start-stop-daemon -S -q -b -m -p /var/run/${NAME}.pid -x $DAEMON
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping $NAME: "
|
||||
start-stop-daemon -K -q -p /var/run/${NAME}.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 eac0c3e288c845cd9b82d02993f8358731a7a03e51591b27feeb453b143beb73 imx-uuc-3440b1108373e79669cc17ba1d2be91a123a2053.tar.gz
|
||||
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# imx-uuc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IMX_UUC_VERSION = 3440b1108373e79669cc17ba1d2be91a123a2053
|
||||
IMX_UUC_SITE = $(call github,NXPmicro,imx-uuc,$(IMX_UUC_VERSION))
|
||||
IMX_UUC_LICENSE = GPLv2+
|
||||
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
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC=$(TARGET_CC)
|
||||
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
|
||||
dd if=/dev/zero of=$(TARGET_DIR)/fat bs=1M count=1
|
||||
$(HOST_DIR)/usr/sbin/mkfs.vfat $(TARGET_DIR)/fat
|
||||
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
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/
|
||||
ln -fs ../../../../usr/lib/systemd/system/imx-uuc.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/imx-uuc.service
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=i.MX Universal UTP Communication Service
|
||||
After=systemd-modules-load.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/uuc
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user