Skip to contentSkip to conversation

gpsd: install udev rules, if appropriate

PATCH Superseded spdawson at gmail.com 1 participant 1 message May 19, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

From: Simon Dawson <[email protected]>

---
 package/gpsd/gpsd.mk | 13 +++++++++++++
 1 file changed, 13 insertions(+)
package/gpsd/gpsd.mk +13 -0
index 384726d..808cce7 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