From: Adam Duskett Date: Sat, 25 Jul 2020 23:06:14 +0000 (-0700) Subject: package/libblockdev: add support for part plugin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=723b9a9d7dc715bdc372602731f9ecbe7c12a241;p=buildroot.git package/libblockdev: add support for part plugin Signed-off-by: Adam Duskett Signed-off-by: Thomas Petazzoni --- diff --git a/package/libblockdev/Config.in b/package/libblockdev/Config.in index 26e23b3145..d15e624091 100644 --- a/package/libblockdev/Config.in +++ b/package/libblockdev/Config.in @@ -49,6 +49,14 @@ config BR2_PACKAGE_LIBBLOCKDEV_MDRAID bool "mdraid" select BR2_PACKAGE_LIBBYTESIZE +config BR2_PACKAGE_LIBBLOCKDEV_PART + bool "part" + depends on BR2_ENABLE_LOCALE # parted + select BR2_PACKAGE_PARTED + +comment "part plugin needs a toolchain w/ locale" + depends on !BR2_ENABLE_LOCALE + endif comment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library" diff --git a/package/libblockdev/libblockdev.mk b/package/libblockdev/libblockdev.mk index 3873554a45..d7ae03e359 100644 --- a/package/libblockdev/libblockdev.mk +++ b/package/libblockdev/libblockdev.mk @@ -25,7 +25,6 @@ LIBBLOCKDEV_CONF_OPTS = \ --without-lvm_dbus \ --without-mpath \ --without-nvdimm \ - --without-part \ --without-python2 \ --without-python3 \ --without-s390 \ @@ -67,4 +66,11 @@ else LIBBLOCKDEV_CONF_OPTS += --without-mdraid endif +ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_PART),y) +LIBBLOCKDEV_DEPENDENCIES += parted +LIBBLOCKDEV_CONF_OPTS += --with-part +else +LIBBLOCKDEV_CONF_OPTS += --without-part +endif + $(eval $(autotools-package))