[BusyBox] [PATCH] config.in features

Giulio Orsero giulioo at pobox.com
Thu Nov 1 05:02:18 UTC 2001


This add all the CONFIG_XX_FEATURE I could find.

There's still a problem in finding and using the same approach for
FEATURES belonging to multiple CONFIG: human readable, minix2,
mount/umount, insmod/rmmod, autowidth

--- ./archival/config.in.orig	Thu Nov  1 00:02:23 2001
+++ ./archival/config.in	Thu Nov  1 12:36:36 2001
@@ -16,7 +16,8 @@
 bool 'rpm2cpio'     CONFIG_RPM2CPIO
 bool 'tar'	    CONFIG_TAR
 if [ "$CONFIG_TAR" = "y" ] ; then
-	bool ' creation support' CONFIG_FEATURE_TAR_CREATE
-	bool ' exclude support'	CONFIG_FEATURE_TAR_EXCLUDE
+    bool '  Enable archive creation'	CONFIG_FEATURE_TAR_CREATE
+    bool '  Enable -X and --exclude options (exclude files)'	CONFIG_FEATURE_TAR_EXCLUDE
+    bool '  Enable -z option (currently only for inflating)'	CONFIG_FEATURE_TAR_GZIP
 fi
 endmenu
--- ./editors/config.in.orig	Thu Nov  1 00:02:54 2001
+++ ./editors/config.in	Thu Nov  1 12:19:37 2001
@@ -8,5 +8,17 @@
 
 bool 'sed'	    CONFIG_SED
 bool 'vi'	    CONFIG_VI
+if [ "$CONFIG_VI" = "y" ]; then
+    bool '  Enable ":" colon commands (no "ex" mode)'	CONFIG_FEATURE_VI_COLON
+    bool '  Enable yank/put commands and mark cmds'	CONFIG_FEATURE_VI_YANKMARK
+    bool '  Enable search and replace cmds'		CONFIG_FEATURE_VI_SEARCH
+    bool '  Catch signals'				CONFIG_FEATURE_VI_USE_SIGNALS
+    bool '  Remember previous cmd and "." cmd'		CONFIG_FEATURE_VI_DOT_CMD
+    bool '  Enable -R option and "view" mode'		CONFIG_FEATURE_VI_READONLY
+    bool '  Enable set-able options, ai ic showmatch'	CONFIG_FEATURE_VI_SETOPT
+    bool '  Support for :set'				CONFIG_FEATURE_VI_SET
+    bool '  Handle window resize'			CONFIG_FEATURE_VI_WIN_RESIZE
+    bool '  Optimize cursor movement'			CONFIG_FEATURE_VI_OPTIMIZE_CURSOR
+fi
 endmenu
 
--- ./fileutils/config.in.orig	Thu Nov  1 00:03:04 2001
+++ ./fileutils/config.in	Thu Nov  1 12:20:16 2001
@@ -15,6 +15,19 @@
 bool 'du'	    CONFIG_DU
 bool 'ln'	    CONFIG_LN
 bool 'ls'	    CONFIG_LS
+if [ "$CONFIG_LS" = "y" ]; then
+    bool '  Enable -p and -F options'	CONFIG_FEATURE_LS_FILETYPES
+    bool '  Enable -L option'		CONFIG_FEATURE_LS_FOLLOWLINKS
+    bool '  Enable -R option'		CONFIG_FEATURE_LS_RECURSIVE
+    bool '  Sort the file names'	CONFIG_FEATURE_LS_SORTFILES
+    bool '  Show file timestamps'	CONFIG_FEATURE_LS_TIMESTAMPS
+    bool '  Show username/groupnames'	CONFIG_FEATURE_LS_USERNAME
+    bool '  Calculate terminal & column widths (for "more" too)'	CONFIG_FEATURE_AUTOWIDTH
+fi
+if [ "$CONFIG_DF" = "y" -o "$CONFIG_DU" = "y" -o "$CONFIG_LS" = "y" ]; then
+    comment 'Common options for df, du, ls'
+    bool '  Support for human readable output (example 13k, 23M, 235G)'	CONFIG_FEATURE_HUMAN_READABLE
+fi
 bool 'mkdir'	    CONFIG_MKDIR
 bool 'mkfifo'	    CONFIG_MKFIFO
 bool 'mknod'	    CONFIG_MKNOD
--- ./findutils/config.in.orig	Thu Nov  1 00:03:12 2001
+++ ./findutils/config.in	Thu Nov  1 12:21:08 2001
@@ -7,9 +7,15 @@
 comment 'Finding Utilities'
 
 bool 'find'	    CONFIG_FIND
+if [ "$CONFIG_FIND" = "y" ] ; then
+    bool '  Enable -mtime option' CONFIG_FEATURE_FIND_MTIME
+    bool '  Enable -perm  option' CONFIG_FEATURE_FIND_PERM
+    bool '  Enable -type  option' CONFIG_FEATURE_FIND_TYPE
+fi
 bool 'grep'	    CONFIG_GREP
 if [ "$CONFIG_GREP" = "y" ] ; then
-	bool ' egrep alias' CONFIG_FEATURE_GREP_EGREP_ALIAS
+    bool '  Support for "egrep" alias'		CONFIG_FEATURE_GREP_EGREP_ALIAS
+    bool '  Enable -A -B and -C context flags' 	CONFIG_FEATURE_GREP_CONTEXT
 fi
 bool 'which'	    CONFIG_WHICH
 bool 'xargs'	    CONFIG_XARGS
--- ./modutils/config.in.orig	Thu Nov  1 00:03:42 2001
+++ ./modutils/config.in	Thu Nov  1 11:43:52 2001
@@ -13,9 +13,10 @@
 bool 'rmmod'	    CONFIG_RMMOD
 
 if [ "$CONFIG_INSMOD" = "y" ]; then
-    bool 'Support insmod/lsmod/rmmod for post 2.1 kernels'     CONFIG_FEATURE_NEW_MODULE_INTERFACE
-    bool 'Support insmod/lsmod/rmmod for pre  2.1 kernels'     CONFIG_FEATURE_OLD_MODULE_INTERFACE
+    bool 'Support insmod/lsmod/rmmod for post 2.1 kernels'	CONFIG_FEATURE_NEW_MODULE_INTERFACE
+    bool 'Support insmod/lsmod/rmmod for pre  2.1 kernels'	CONFIG_FEATURE_OLD_MODULE_INTERFACE
     bool 'Support module version checking'			CONFIG_FEATURE_INSMOD_VERSION_CHECKING
+    bool 'Support uClinux mem usage optimization (image in kernel mem)'		CONFIG_FEATURE_INSMOD_LOADINKMEM
 fi
 
 endmenu
--- ./procps/config.in.orig	Thu Nov  1 00:03:57 2001
+++ ./procps/config.in	Thu Nov  1 12:09:22 2001
@@ -9,11 +9,14 @@
 bool 'free'	    CONFIG_FREE
 bool 'kill'	    CONFIG_KILL
 bool 'killall'      CONFIG_KILLALL
-if [ "$CONFIG_KILLALL" = "y" ] ; then
-	define_bool CONFIG_KILL	y
+if [ "$CONFIG_KILLALL" = "y" -a "$CONFIG_KILL" = "n" ] ; then
+    define_bool CONFIG_KILL	y
 fi
 bool 'pidof'	    CONFIG_PIDOF
 bool 'ps'	    CONFIG_PS
+if [ "$CONFIG_PS" = "y" ] ; then
+    bool '  Use devps and devmtab kernel driver (need patched kernel)'	CONFIG_FEATURE_USE_DEVPS_PATCH
+fi
 bool 'renice'	    CONFIG_RENICE
 bool 'uptime'	    CONFIG_UPTIME
 endmenu
--- ./textutils/config.in.orig	Thu Nov  1 00:04:29 2001
+++ ./textutils/config.in	Thu Nov  1 12:21:44 2001
@@ -15,7 +15,14 @@
 bool 'length'	    CONFIG_LENGTH
 bool 'md5sum'	    CONFIG_MD5SUM
 bool 'sort'	    CONFIG_SORT
+if [ "$CONFIG_SORT" = "y" ]; then
+    bool '  Enable reverse sort'	CONFIG_FEATURE_SORT_REVERSE
+    bool '  Enable unique sort'		CONFIG_FEATURE_SORT_UNIQUE
+fi
 bool 'tail'	    CONFIG_TAIL
+if [ "$CONFIG_TAIL" = "y" ]; then
+    bool '  Enable -c, -q, -s, and -v options'	CONFIG_FEATURE_FANCY_TAIL
+fi
 bool 'tr'	    CONFIG_TR
 bool 'uniq'	    CONFIG_UNIQ
 bool 'unix2dos'	    CONFIG_DOS2UNIX
--- ./util-linux/config.in.orig	Thu Nov  1 00:04:37 2001
+++ ./util-linux/config.in	Thu Nov  1 12:58:41 2001
@@ -9,19 +9,40 @@
 
 bool 'dmesg'		    CONFIG_DMESG
 bool 'fbset'		    CONFIG_FBSET
+if [ "$CONFIG_FBSET" = "y" ]; then
+    bool '  Turn on extra fbset options'	CONFIG_FEATURE_FBSET_FANCY
+    bool '  Turn on fbset readmode support'	CONFIG_FEATURE_FBSET_READMODE
+fi
 bool 'fdflush'		    CONFIG_FDFLUSH
 bool 'freeramdisk'	    CONFIG_FREERAMDISK
 bool 'fsck_minix'	    CONFIG_FSCK_MINIX
 bool 'getopt'		    CONFIG_GETOPT
 bool 'mkfs_minix'	    CONFIG_MKFS_MINIX
+if [ "$CONFIG_FSCK_MINIX" = "y" -o "$CONFIG_MKFS_MINIX" = "y" ]; then
+    bool 'Support Minix fs v2 (fsck_minix/mkfs_minix)'	CONFIG_FEATURE_MINIX2
+fi
 bool 'mkswap'		    CONFIG_MKSWAP
 bool 'more'		    CONFIG_MORE
+if [ "$CONFIG_MORE" = "y" ]; then
+    bool '  Calculate terminal & column widths (for "ls" too)'	CONFIG_FEATURE_AUTOWIDTH
+    bool '  Use termios to manipulate the screen'		CONFIG_FEATURE_USE_TERMIOS
+fi 
 bool 'mount'		    CONFIG_MOUNT
-bool 'nfsmount'		    CONFIG_NFSMOUNT
+if [ "$CONFIG_MOUNT" = "y" ]; then
+    bool '  Support mounting nfs file systems'		    	CONFIG_NFSMOUNT
+fi	
 bool 'pivot_root'	    CONFIG_PIVOT_ROOT
 bool 'rdate'		    CONFIG_RDATE
 bool 'swaponoff'	    CONFIG_SWAPONOFF
 bool 'umount'		    CONFIG_UMOUNT
+if [ "$CONFIG_UMOUNT" = "y" ]; then
+    bool '  Support forced filesystem unmounting'		CONFIG_FEATURE_MOUNT_FORCE
+fi
+if [ "$CONFIG_MOUNT" = "y" -o "$CONFIG_UMOUNT" = "y" ]; then
+    comment 'Common options for mount/umount'
+    bool '  Support for loop devices'				CONFIG_FEATURE_MOUNT_LOOP
+    bool '  Support for a real /etc/mtab (instead of /proc/mounts)'	CONFIG_FEATURE_MTAB_SUPPORT
+fi
 
 endmenu
 
-- 
giulioo at pobox.com





More information about the busybox mailing list