summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2013-06-12 17:52:35 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-06-12 20:37:01 (GMT)
commitb26883c9882d633995bd09b91106b88fe4f52709 (patch)
tree7ef545b83e990afe5ac1816633124f2122e8ac29
parent9e25d8a1818b4089f9242cb253b0db931f43b3cc (diff)
downloadbuildroot-b26883c9882d633995bd09b91106b88fe4f52709.tar.gz
buildroot-b26883c9882d633995bd09b91106b88fe4f52709.tar.bz2
gpsd: install udev rules, if appropriate
Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/gpsd/gpsd.mk13
1 files changed, 13 insertions, 0 deletions
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))