From b26883c9882d633995bd09b91106b88fe4f52709 Mon Sep 17 00:00:00 2001 From: Simon Dawson Date: Wed, 12 Jun 2013 18:52:35 +0100 Subject: [PATCH] gpsd: install udev rules, if appropriate Signed-off-by: Simon Dawson Signed-off-by: Peter Korsgaard --- package/gpsd/gpsd.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk index 33aff5e238..be2e681c42 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)) -- 2.30.2