buildrootschalter/package/e2fsprogs/Config.in
Thomas De Schampheleire 35eaed8d07 Config.in files: use if/endif instead of 'depends on' for main symbol
In the Config.in file of package foo, it often happens that there are other
symbols besides BR2_PACKAGE_FOO. Typically, these symbols only make sense
when foo itself is enabled. There are two ways to express this: with
    depends on BR2_PACKAGE_FOO
in each extra symbol, or with
    if BR2_PACKAGE_FOO
        ...
    endif
around the entire set of extra symbols.

The if/endif approach avoids the repetition of 'depends on' statements on
multiple symbols, so this is clearly preferred. But even when there is only
one extra symbol, if/endif is a more logical choice:
- it is future-proof for when extra symbols are added
- it allows to have just one strategy instead of two (less confusion)

This patch modifies the Config.in files accordingly.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2013-12-25 12:21:39 +01:00

99 lines
1.8 KiB
Plaintext

config BR2_PACKAGE_E2FSPROGS
bool "e2fsprogs"
depends on BR2_LARGEFILE
depends on BR2_USE_WCHAR # util-linux
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
help
The EXT2 file system utilities.
http://e2fsprogs.sf.net
if BR2_PACKAGE_E2FSPROGS
config BR2_PACKAGE_E2FSPROGS_BADBLOCKS
bool "badblocks"
default y
config BR2_PACKAGE_E2FSPROGS_CHATTR
bool "chattr"
default y
config BR2_PACKAGE_E2FSPROGS_DEBUGFS
bool "debugfs"
config BR2_PACKAGE_E2FSPROGS_DUMPE2FS
bool "dumpe2fs"
default y
config BR2_PACKAGE_E2FSPROGS_E2FREEFRAG
bool "e2freefrag"
default y
config BR2_PACKAGE_E2FSPROGS_E2FSCK
bool "e2fsck"
default y
config BR2_PACKAGE_E2FSPROGS_E2IMAGE
bool "e2image"
config BR2_PACKAGE_E2FSPROGS_E2LABEL
bool "e2label"
default y
config BR2_PACKAGE_E2FSPROGS_E2UNDO
bool "e2undo"
default y
config BR2_PACKAGE_E2FSPROGS_E4DEFRAG
bool "e4defrag"
depends on !BR2_avr32 # fallocate not implemented
config BR2_PACKAGE_E2FSPROGS_FILEFRAG
bool "filefrag"
default y
config BR2_PACKAGE_E2FSPROGS_FINDFS
bool "findfs"
default y
select BR2_PACKAGE_E2FSPROGS_E2LABEL
config BR2_PACKAGE_E2FSPROGS_FSCK
bool "fsck"
default y
config BR2_PACKAGE_E2FSPROGS_LOGSAVE
bool "logsave"
default y
config BR2_PACKAGE_E2FSPROGS_LSATTR
bool "lsattr"
default y
config BR2_PACKAGE_E2FSPROGS_MKE2FS
bool "mke2fs"
default y
config BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND
bool "mklost+found"
default y
config BR2_PACKAGE_E2FSPROGS_RESIZE2FS
bool "resize2fs"
config BR2_PACKAGE_E2FSPROGS_TUNE2FS
bool "tune2fs"
default y
select BR2_PACKAGE_E2FSPROGS_E2LABEL
config BR2_PACKAGE_E2FSPROGS_UUIDGEN
bool "uuidgen"
default y
endif
comment "e2fsprogs needs a toolchain w/ largefile, wchar"
depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)