mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
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 4cba22bbfa)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user