projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e25d8a
)
gpsd: install udev rules, if appropriate
author
Simon Dawson
<spdawson@gmail.com>
Wed, 12 Jun 2013 17:52:35 +0000
(18:52 +0100)
committer
Peter Korsgaard
<jacmet@sunsite.dk>
Wed, 12 Jun 2013 20:37:01 +0000
(22:37 +0200)
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gpsd/gpsd.mk
patch
|
blob
|
history
diff --git
a/package/gpsd/gpsd.mk
b/package/gpsd/gpsd.mk
index 33aff5e23839224becbe7f86308097fda7c09c29..be2e681c4244ca525303b8ab5ede044038efc5ba 100644
(file)
--- 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))