From: spdawson at gmail.com <spdawson@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gpsd: make init script optional
Date: Sun, 16 Jun 2013 12:34:28 +0100 [thread overview]
Message-ID: <1371382468-5838-1-git-send-email-spdawson@gmail.com> (raw)
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
+
define GPSD_INSTALL_STAGING_CMDS
(cd $(@D); \
$(GPSD_SCONS_ENV) \
--
1.8.1.2
next reply other threads:[~2013-06-16 11:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-16 11:34 spdawson at gmail.com [this message]
2013-06-16 12:34 ` [Buildroot] [PATCH] gpsd: make init script optional Maxime Ripard
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=1371382468-5838-1-git-send-email-spdawson@gmail.com \
--to=spdawson@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.