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>
This commit is contained in:
Peter Korsgaard 2019-04-02 22:56:01 +02:00 committed by Thomas Petazzoni
parent feef4b733c
commit 4cba22bbfa

View File

@ -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