diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-16 16:18:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-16 16:18:50 +0100 |
commit | 10880cc20ff424c5443a8fc6b6afa5c59c5ef602 (patch) | |
tree | 5f36a6d8872bdeb2e1955a181286ba0483c3160d /util-linux | |
parent | 0581a2f3041184db1af997305908e211d3e4e34f (diff) | |
download | busybox-w32-10880cc20ff424c5443a8fc6b6afa5c59c5ef602.tar.gz busybox-w32-10880cc20ff424c5443a8fc6b6afa5c59c5ef602.tar.bz2 busybox-w32-10880cc20ff424c5443a8fc6b6afa5c59c5ef602.zip |
Make mkfs.vfat and mkdosfs individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/Config.src | 7 | ||||
-rw-r--r-- | util-linux/Kbuild.src | 1 | ||||
-rw-r--r-- | util-linux/mkfs_vfat.c | 19 |
3 files changed, 19 insertions, 8 deletions
diff --git a/util-linux/Config.src b/util-linux/Config.src index 72d3be1f8..9bef0d532 100644 --- a/util-linux/Config.src +++ b/util-linux/Config.src | |||
@@ -272,13 +272,6 @@ config MKFS_REISER | |||
272 | Utility to create ReiserFS filesystems. | 272 | Utility to create ReiserFS filesystems. |
273 | Note: this applet needs a lot of testing and polishing. | 273 | Note: this applet needs a lot of testing and polishing. |
274 | 274 | ||
275 | config MKFS_VFAT | ||
276 | bool "mkfs_vfat" | ||
277 | default y | ||
278 | select PLATFORM_LINUX | ||
279 | help | ||
280 | Utility to create FAT32 filesystems. | ||
281 | |||
282 | config GETOPT | 275 | config GETOPT |
283 | bool "getopt" | 276 | bool "getopt" |
284 | default y | 277 | default y |
diff --git a/util-linux/Kbuild.src b/util-linux/Kbuild.src index 41cf77809..dfd50afa2 100644 --- a/util-linux/Kbuild.src +++ b/util-linux/Kbuild.src | |||
@@ -28,7 +28,6 @@ lib-$(CONFIG_LSPCI) += lspci.o | |||
28 | lib-$(CONFIG_LSUSB) += lsusb.o | 28 | lib-$(CONFIG_LSUSB) += lsusb.o |
29 | lib-$(CONFIG_MKFS_MINIX) += mkfs_minix.o | 29 | lib-$(CONFIG_MKFS_MINIX) += mkfs_minix.o |
30 | lib-$(CONFIG_MKFS_REISER) += mkfs_reiser.o | 30 | lib-$(CONFIG_MKFS_REISER) += mkfs_reiser.o |
31 | lib-$(CONFIG_MKFS_VFAT) += mkfs_vfat.o | ||
32 | lib-$(CONFIG_MKSWAP) += mkswap.o | 31 | lib-$(CONFIG_MKSWAP) += mkswap.o |
33 | lib-$(CONFIG_MORE) += more.o | 32 | lib-$(CONFIG_MORE) += more.o |
34 | lib-$(CONFIG_MOUNT) += mount.o | 33 | lib-$(CONFIG_MOUNT) += mount.o |
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c index d53c751eb..ab70853a1 100644 --- a/util-linux/mkfs_vfat.c +++ b/util-linux/mkfs_vfat.c | |||
@@ -7,6 +7,25 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | //config:config MKDOSFS | ||
11 | //config: bool "mkdosfs" | ||
12 | //config: default y | ||
13 | //config: select PLATFORM_LINUX | ||
14 | //config: help | ||
15 | //config: Utility to create FAT32 filesystems. | ||
16 | //config: | ||
17 | //config:config MKFS_VFAT | ||
18 | //config: bool "mkfs.vfat" | ||
19 | //config: default y | ||
20 | //config: select PLATFORM_LINUX | ||
21 | //config: help | ||
22 | //config: Alias to "mkdosfs". | ||
23 | |||
24 | //applet:IF_MKDOSFS(APPLET_ODDNAME(mkdosfs, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat)) | ||
25 | //applet:IF_MKFS_VFAT(APPLET_ODDNAME(mkfs.vfat, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat)) | ||
26 | |||
27 | //kbuild:lib-$(CONFIG_MKDOSFS) += mkfs_vfat.o | ||
28 | //kbuild:lib-$(CONFIG_MKFS_VFAT) += mkfs_vfat.o | ||
10 | 29 | ||
11 | //usage:#define mkfs_vfat_trivial_usage | 30 | //usage:#define mkfs_vfat_trivial_usage |
12 | //usage: "[-v] [-n LABEL] BLOCKDEV [KBYTES]" | 31 | //usage: "[-v] [-n LABEL] BLOCKDEV [KBYTES]" |