gpsd: install udev rules, if appropriate

Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Simon Dawson 2013-06-12 18:52:35 +01:00 committed by Peter Korsgaard
parent 9e25d8a181
commit b26883c988
1 changed files with 13 additions and 0 deletions

View File

@ -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))