summaryrefslogtreecommitdiffhomepage
path: root/util-linux/mkswap.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 11:46:32 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 11:46:32 +0100
commitdd898c9f3388fca1d7339a45150fbb7406de0971 (patch)
treef9f498c9d86c26bd208acc687c5f29b451927ce3 /util-linux/mkswap.c
parente5dd71f94f8691c41382b89de35088695cca34b9 (diff)
Convert all util-linux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mkswap.c')
-rw-r--r--util-linux/mkswap.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index dcb53f008..954a1948d 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -5,6 +5,29 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+//config:config MKSWAP
+//config: bool "mkswap"
+//config: default y
+//config: help
+//config: The mkswap utility is used to configure a file or disk partition as
+//config: Linux swap space. This allows Linux to use the entire file or
+//config: partition as if it were additional RAM, which can greatly increase
+//config: the capability of low-memory machines. This additional memory is
+//config: much slower than real RAM, but can be very helpful at preventing your
+//config: applications being killed by the Linux out of memory (OOM) killer.
+//config: Once you have created swap space using 'mkswap' you need to enable
+//config: the swap space using the 'swapon' utility.
+//config:
+//config:config FEATURE_MKSWAP_UUID
+//config: bool "UUID support"
+//config: default y
+//config: depends on MKSWAP
+//config: help
+//config: Generate swap spaces with universally unique identifiers.
+
+//applet:IF_MKSWAP(APPLET(mkswap, BB_DIR_SBIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_MKSWAP) += mkswap.o
//usage:#define mkswap_trivial_usage
//usage: "[-L LBL] BLOCKDEV [KBYTES]"