@@ -129,6 +129,10 @@ config CURL_SSL
bool
default n
+config DISKFORMAT
+ bool
+ default n
+
config SYSTEMD
bool "enable systemd support"
depends on HAVE_LINUX
@@ -2,21 +2,20 @@
#
# SPDX-License-Identifier: GPL-2.0-only
+if DISKFORMAT
config FAT_FILESYSTEM
bool "FAT file system creation support"
- depends on DISKFORMAT
default n
help
Enable support for creating FAT file systems.
config EXT_FILESYSTEM
bool "EXT2 / EXT3 / EXT4 file system creation support"
- depends on DISKFORMAT
depends on HAVE_LIBEXT2FS
default n
help
Enable support for creating EXT file systems.
comment "EXT2 / EXT3 / EXT4 file system creation support needs libext2fs"
- depends on DISKFORMAT
depends on !HAVE_LIBEXT2FS
+endif
@@ -106,9 +106,11 @@ config DISKPART
comment "diskpart support needs libfdisk"
depends on !HAVE_LIBFDISK
-config DISKFORMAT
+config DISKPART_FORMAT
bool "diskpart extension for creating file systems"
depends on DISKPART
+ select DISKFORMAT
+ default n
help
This extension allows formatting newly created partitions.
@@ -120,12 +122,8 @@ config DISKFORMAT_HANDLER
The diskformat handler allows creating filesystems on empty
partitions.
-if DISKFORMAT
-
source fs/Config.in
-endif
-
config UNIQUEUUID
bool "uniqueuuid"
depends on HAVE_LIBBLKID
@@ -925,7 +925,7 @@ handler_release:
sleep(2);
-#ifdef CONFIG_DISKFORMAT
+#ifdef CONFIG_DISKPART_FORMAT
/* Create filesystems */
if (!ret && createtable->parent) {
LIST_FOREACH(part, &priv.listparts, next) {
The following warnings are generated if DISKFORMAT_HANDLER is set without setting DISKPART: scripts/kconfig/conf --silentoldconfig Kconfig warning: (DISKFORMAT_HANDLER) selects DISKFORMAT which has unmet direct dependencies (DISKPART) warning: (DISKFORMAT_HANDLER) selects DISKFORMAT which has unmet direct dependencies (DISKPART) This is due to a dependency between the handlers, that is not necessary because it is possible to link just one of them. Replace CONFIG_DISKFORMAT with CONFIG_DISKPART_FORMAT in diskpüart handler, and use CONFIG_DISKFORMAT as a flag to enable/disable the activation of the filesystems creators. Signed-off-by: Stefano Babic <sbabic@denx.de> --- Kconfig | 4 ++++ fs/Config.in | 5 ++--- handlers/Config.in | 8 +++----- handlers/diskpart_handler.c | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-)