From: Peter Korsgaard Date: Tue, 2 Apr 2019 20:56:01 +0000 (+0200) Subject: package/libfuse: only install udev rules if (e)udev is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cba22bbfa21ac27d28cfb7e9973c2c91e30568f;p=buildroot.git 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 --- 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