From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] imx-uuc: add new package
Date: Sun, 17 Apr 2016 22:50:45 +0200 [thread overview]
Message-ID: <20160417225045.26b26138@free-electrons.com> (raw)
In-Reply-To: <1460544052-31608-1-git-send-email-gary.bisson@boundarydevices.com>
Hello,
The commit title should have been:
imx-uuc: new package
(yes that's nitpicking)
On Wed, 13 Apr 2016 12:40:52 +0200, Gary Bisson wrote:
> diff --git a/package/freescale-imx/imx-uuc/Config.in b/package/freescale-imx/imx-uuc/Config.in
> new file mode 100644
> index 0000000..75e4c87
> --- /dev/null
> +++ b/package/freescale-imx/imx-uuc/Config.in
> @@ -0,0 +1,19 @@
> +config BR2_PACKAGE_IMX_UUC
> + bool "imx-uuc"
> + depends on BR2_TOOLCHAIN_HAS_THREADS
> + depends on BR2_arm # Only relevant for i.MX
> + 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.
Some of those lines were slightly too long, so I rewrapped.
> +
> +comment "imx-uuc needs a toolchain w/ threads"
> + depends on BR2_ARM
BR2_arm, not BR2_ARM.
> + depends on !BR2_TOOLCHAIN_HAS_THREADS
> diff --git a/package/freescale-imx/imx-uuc/S80imx-uuc b/package/freescale-imx/imx-uuc/S80imx-uuc
> new file mode 100644
> index 0000000..8d6d8c1
> --- /dev/null
> +++ b/package/freescale-imx/imx-uuc/S80imx-uuc
> @@ -0,0 +1,28 @@
> +#!/bin/sh
> +
> +NAME=uuc
> +DAEMON=/usr/bin/$NAME
> +
> +case "$1" in
> + start)
> + printf "Starting $NAME: "
> + start-stop-daemon -S -q -b -p /var/run/${NAME}.pid -x $DAEMON
> + echo "OK"
I've added missing error checking here.
> + ;;
> + stop)
> + printf "Stopping $NAME: "
> + start-stop-daemon -K -q -p /var/run/${NAME}.pid
> + echo "OK"
And here. I've also re-indented the init script to match the
indentation used in S50dropbear (which I believe is more or less our
reference).
> diff --git a/package/freescale-imx/imx-uuc/imx-uuc.hash b/package/freescale-imx/imx-uuc/imx-uuc.hash
> new file mode 100644
> index 0000000..aab9ea8
> --- /dev/null
> +++ b/package/freescale-imx/imx-uuc/imx-uuc.hash
> @@ -0,0 +1 @@
> +sha256 95d7f7b075f58fedc07602fbc0e5bf5212d28deea3d09cdbcbd80992dcd18482 imx-uuc-0.5.1.tar.gz
Missing source for the hash, so I've assumed it had been locally
calculated, and added the usual comment.
Applied with those changes, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-04-17 20:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 10:40 [Buildroot] [PATCH v2] imx-uuc: add new package Gary Bisson
2016-04-17 20:50 ` Thomas Petazzoni [this message]
2016-04-18 9:38 ` Gary Bisson
2016-04-18 9:52 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160417225045.26b26138@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox