Skip to contentSkip to conversation

gpsd: install udev rules, if appropriate

PATCH New spdawson at gmail.com 2 participants 2 messages Jun 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpsd: install udev rules, if appropriate

From: Simon Dawson <[email protected]>

---
v2: Resend; no changes.

 package/gpsd/gpsd.mk | 13 +++++++++++++
 1 file changed, 13 insertions(+)
package/gpsd/gpsd.mk +13 -0
index 33aff5e..be2e681 100644
@@ -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))
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH v2 1/1 gpsd: install udev rules, if appropriate

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

spdawson> From: Simon Dawson <[email protected]> spdawson> Signed-off-by: Simon Dawson <[email protected]> spdawson> ---
spdawson> v2: Resend; no changes.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard