aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2019-04-02 22:56:01 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-04-03 21:39:30 +0200
commit4cba22bbfa21ac27d28cfb7e9973c2c91e30568f (patch)
tree2d8aca01249224ab696315fc7d784db3d6d16cad
parentfeef4b733c4e5a6ee89d1554d29786304be7a720 (diff)
downloadbuildroot-4cba22bbfa21ac27d28cfb7e9973c2c91e30568f.tar.gz
buildroot-4cba22bbfa21ac27d28cfb7e9973c2c91e30568f.tar.bz2
package/libfuse: only install udev rules if (e)udev is enabled
No point in installing udev rules if nothing will use it. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/libfuse/libfuse.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/package/libfuse/libfuse.mk b/package/libfuse/libfuse.mk
index 84027ebedb..ab0131b057 100644
--- a/package/libfuse/libfuse.mk
+++ b/package/libfuse/libfuse.mk
@@ -17,11 +17,18 @@ LIBFUSE_CONF_OPTS = \
--enable-util \
UDEV_RULES_PATH=/lib/udev/rules.d
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+define LIBFUSE_INSTALL_UDEV
+ mkdir -p $(TARGET_DIR)/lib/udev/rules.d
+ cp $(STAGING_DIR)/lib/udev/rules.d/*-fuse.rules $(TARGET_DIR)/lib/udev/rules.d
+endef
+
+LIBFUSE_POST_INSTALL_TARGET_HOOKS += LIBFUSE_INSTALL_UDEV
+endif
+
define LIBFUSE_INSTALL_TARGET_CMDS
cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/
- mkdir -p $(TARGET_DIR)/lib/udev/rules.d
- cp $(STAGING_DIR)/lib/udev/rules.d/*-fuse.rules $(TARGET_DIR)/lib/udev/rules.d
endef
define LIBFUSE_DEVICES