From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gpsd: make init script optional
Date: Sun, 16 Jun 2013 14:34:47 +0200 [thread overview]
Message-ID: <20130616123447.GY16699@lukather> (raw)
In-Reply-To: <1371382468-5838-1-git-send-email-spdawson@gmail.com>
Hi Simon,
On Sun, Jun 16, 2013 at 12:34:28PM +0100, spdawson at gmail.com wrote:
> From: Simon Dawson <spdawson@gmail.com>
>
> Signed-off-by: Simon Dawson <spdawson@gmail.com>
> ---
> package/gpsd/Config.in | 7 +++++++
> package/gpsd/gpsd.mk | 7 +++++++
> 2 files changed, 14 insertions(+)
>
> diff --git a/package/gpsd/Config.in b/package/gpsd/Config.in
> index 337f8e7..29e061f 100644
> --- a/package/gpsd/Config.in
> +++ b/package/gpsd/Config.in
> @@ -21,6 +21,13 @@ config BR2_PACKAGE_GPSD_DEVICES
> default "/dev/ttyS1"
> depends on BR2_PACKAGE_GPSD
>
> +config BR2_PACKAGE_GPSD_INSTALL_INITSCRIPT
> + bool "install init script"
> + default y
> + depends on BR2_PACKAGE_GPSD
> + help
> + Install a gpsd init script
> +
> menu "Features"
> depends on BR2_PACKAGE_GPSD
>
> diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
> index be2e681..45d1aed 100644
> --- a/package/gpsd/gpsd.mk
> +++ b/package/gpsd/gpsd.mk
> @@ -207,12 +207,19 @@ define GPSD_INSTALL_TARGET_CMDS
> $(SCONS) \
> $(GPSD_SCONS_OPTS) \
> install)
> +endef
> +
> +define GPSD_INSTALL_INITSCRIPT
> if [ ! -f $(TARGET_DIR)/etc/init.d/S50gpsd ]; then \
> $(INSTALL) -m 0755 -D package/gpsd/S50gpsd $(TARGET_DIR)/etc/init.d/S50gpsd; \
> $(SED) 's,^DEVICES=.*,DEVICES=$(BR2_PACKAGE_GPSD_DEVICES),' $(TARGET_DIR)/etc/init.d/S50gpsd; \
> fi
> endef
>
> +ifeq ($(BR2_PACKAGE_GPSD_INSTALL_INITSCRIPT),y)
> +GPSD_POST_INSTALL_TARGET_HOOKS = GPSD_INSTALL_INITSCRIPT
> +endif
You should use GPSD_INSTALL_INIT_SYSV instead.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2013-06-16 12:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-16 11:34 [Buildroot] [PATCH] gpsd: make init script optional spdawson at gmail.com
2013-06-16 12:34 ` Maxime Ripard [this message]
2013-06-16 13:09 ` Yann E. MORIN
2013-06-16 15:59 ` Simon Dawson
2013-06-16 17:37 ` Peter Korsgaard
2013-06-16 18:16 ` Simon Dawson
2013-06-16 18:30 ` Maxime Ripard
2013-06-18 6:24 ` Arnout Vandecappelle
2013-06-18 7:07 ` 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=20130616123447.GY16699@lukather \
--to=maxime.ripard@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