@@ -33,6 +33,9 @@ config BR2_PACKAGE_LIBBLOCKDEV_FS
comment "filesystem plugin needs a toolchain w/ locale"
depends on !BR2_ENABLE_LOCALE
+config BR2_PACKAGE_LIBBLOCKDEV_LOOP
+ bool "loop"
+
endif
comment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library"
@@ -20,7 +20,6 @@ LIBBLOCKDEV_CONF_OPTS = \
--without-dmraid \
--without-escrow \
--without-kbd \
- --without-loop \
--without-lvm \
--without-lvm_dbus \
--without-mdraid \
@@ -48,4 +47,10 @@ else
LIBBLOCKDEV_CONF_OPTS += --without-fs
endif
+ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LOOP),y)
+LIBBLOCKDEV_CONF_OPTS += --with-loop
+else
+LIBBLOCKDEV_CONF_OPTS += --without-loop
+endif
+
$(eval $(autotools-package))