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:
parent
feef4b733c
commit
4cba22bbfa
@ -17,11 +17,18 @@ LIBFUSE_CONF_OPTS = \
|
|||||||
--enable-util \
|
--enable-util \
|
||||||
UDEV_RULES_PATH=/lib/udev/rules.d
|
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
|
define LIBFUSE_INSTALL_TARGET_CMDS
|
||||||
cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
|
cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
|
||||||
cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/
|
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
|
endef
|
||||||
|
|
||||||
define LIBFUSE_DEVICES
|
define LIBFUSE_DEVICES
|
||||||
|
Loading…
Reference in New Issue
Block a user