From: Simon Dawson Date: Wed, 12 Jun 2013 17:52:35 +0000 (+0100) Subject: gpsd: install udev rules, if appropriate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b26883c9882d633995bd09b91106b88fe4f52709;p=buildroot.git gpsd: install udev rules, if appropriate Signed-off-by: Simon Dawson Signed-off-by: Peter Korsgaard --- 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))