e2fsprogs: add options for debugfs/e2image/resize2fs utilities
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 28 Jul 2011 13:04:09 +0000 (15:04 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 28 Jul 2011 13:35:55 +0000 (15:35 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/e2fsprogs/Config.in
package/e2fsprogs/e2fsprogs.mk

index 3060719d5a9cf1e0fd0ed65edb56afee975262ae..2410fef99bf99f9d2632803f059ac4f909a828e4 100644 (file)
@@ -26,6 +26,9 @@ 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
@@ -40,6 +43,9 @@ config BR2_PACKAGE_E2FSPROGS_E2FSCK
        default y
        select BR2_PACKAGE_E2FSPROGS_LIBBLKID
 
+config BR2_PACKAGE_E2FSPROGS_E2IMAGE
+       bool "e2image"
+
 config BR2_PACKAGE_E2FSPROGS_E2LABEL
        bool "e2label"
        default y
@@ -81,6 +87,9 @@ config BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND
        default y
        depends on BR2_PACKAGE_E2FSPROGS
 
+config BR2_PACKAGE_E2FSPROGS_RESIZE2FS
+       bool "resize2fs"
+
 config BR2_PACKAGE_E2FSPROGS_TUNE2FS
        bool "tune2fs"
        default y
index 8a7edb4274ec5ffa56d7879604eaa8a8c97ec36e..6381d05aa38270b02598ee7b09d1409940666932 100644 (file)
@@ -11,9 +11,9 @@ E2FSPROGS_INSTALL_STAGING = YES
 E2FSPROGS_CONF_OPT = \
        --disable-tls \
        --enable-elf-shlibs \
-       --disable-debugfs \
-       --disable-imager \
-       --disable-resizer \
+       $(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \
+       $(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \
+       $(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),,--disable-resizer) \
        $(if $(BR2_PACKAGE_E2FSPROGS_UUIDD),,--disable-uuidd) \
        --enable-fsck \
        --disable-e2initrd-helper \