From 4cba22bbfa21ac27d28cfb7e9973c2c91e30568f Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 2 Apr 2019 22:56:01 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/libfuse/libfuse.mk | 11 +++++++++-- 1 file 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 -- 2.30.2