From: spdawson at gmail.com <spdawson@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] gpsd: install udev rules, if appropriate
Date: Wed, 12 Jun 2013 18:52:35 +0100 [thread overview]
Message-ID: <1371059555-21015-1-git-send-email-spdawson@gmail.com> (raw)
From: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
v2: Resend; no changes.
package/gpsd/gpsd.mk | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
index 33aff5e..be2e681 100644
--- a/package/gpsd/gpsd.mk
+++ b/package/gpsd/gpsd.mk
@@ -222,4 +222,17 @@ define GPSD_INSTALL_STAGING_CMDS
install)
endef
+ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV),y)
+define GPSD_INSTALL_UDEV_RULES
+ (cd $(@D); \
+ $(GPSD_SCONS_ENV) \
+ DESTDIR=$(TARGET_DIR) \
+ $(SCONS) \
+ $(GPSD_SCONS_OPTS) \
+ udev-install)
+endef
+
+GPSD_POST_INSTALL_TARGET_HOOKS += GPSD_INSTALL_UDEV_RULES
+endif
+
$(eval $(generic-package))
--
1.8.1.2
next reply other threads:[~2013-06-12 17:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 17:52 spdawson at gmail.com [this message]
2013-06-12 20:37 ` [Buildroot] [PATCH v2] gpsd: install udev rules, if appropriate Peter Korsgaard
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=1371059555-21015-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox