aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2019-04-02 22:56:01 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-04-05 22:32:46 +0200
commitd09d5a8411cdff5d9dba00f3cff10037ce1ae653 (patch)
tree22cc66d24d39293634da003e49e1fbc5c53a26c0
parent4c5958664e4357c9a995415995966c38f21df145 (diff)
downloadbuildroot-d09d5a8411cdff5d9dba00f3cff10037ce1ae653.tar.gz
buildroot-d09d5a8411cdff5d9dba00f3cff10037ce1ae653.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> (cherry picked from commit 4cba22bbfa21ac27d28cfb7e9973c2c91e30568f) Signed-off-by: Peter Korsgaard <peter@korsgaard.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