summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorJeremie Koenig2010-07-19 00:44:56 +0200
committerDenys Vlasenko2010-07-19 00:44:56 +0200
commit1d7266d3b59be361763dab61f680103bbb70f3e9 (patch)
tree631f533af2f9ceb9ba8d5cfcc978a3c33a0393cc /miscutils
parentb175462422f02a159a14dc5561d8bef6f84b2b66 (diff)
downloadbusybox-1d7266d3b59be361763dab61f680103bbb70f3e9.zip
busybox-1d7266d3b59be361763dab61f680103bbb70f3e9.tar.gz
mark Linux-specific configuration options
PLATFORM_LINUX is used as a dependency for applets or features which require Linux-specific interfaces. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/Config.src19
-rw-r--r--miscutils/conspy.c1
-rw-r--r--miscutils/ubi_attach_detach.c2
3 files changed, 21 insertions, 1 deletions
diff --git a/miscutils/Config.src b/miscutils/Config.src
index 2f7c502..e89e231 100644
--- a/miscutils/Config.src
+++ b/miscutils/Config.src
@@ -10,6 +10,7 @@ INSERT
config ADJTIMEX
bool "adjtimex"
default y
+ depends on PLATFORM_LINUX
help
Adjtimex reads and optionally sets adjustment parameters for
the Linux clock adjustment algorithm.
@@ -24,6 +25,7 @@ config BBCONFIG
config BEEP
bool "beep"
default y
+ depends on PLATFORM_LINUX
help
The beep applets beeps in a given freq/Hz.
@@ -180,6 +182,7 @@ config FEATURE_DC_LIBM
config DEVFSD
bool "devfsd (obsolete)"
default n
+ depends on PLATFORM_LINUX
select FEATURE_SYSLOG
help
This is deprecated and should NOT be used anymore.
@@ -223,6 +226,7 @@ config DEVFSD_VERBOSE
config FEATURE_DEVFS
bool "Use devfs names for all devices (obsolete)"
default n
+ depends on PLATFORM_LINUX
help
This is obsolete and should NOT be used anymore.
Use linux >= 2.6 (optionally with hotplug) and mdev instead!
@@ -242,6 +246,7 @@ config DEVMEM
config EJECT
bool "eject"
default y
+ depends on PLATFORM_LINUX
help
Used to eject cdroms. (defaults to /dev/cdrom)
@@ -256,6 +261,7 @@ config FEATURE_EJECT_SCSI
config FBSPLASH
bool "fbsplash"
default y
+ depends on PLATFORM_LINUX
help
Shows splash image and progress bar on framebuffer device.
Can be used during boot phase of an embedded device. ~2kb.
@@ -305,6 +311,7 @@ config FLASH_ERASEALL
config IONICE
bool "ionice"
default y
+ depends on PLATFORM_LINUX
help
Set/set program io scheduling class and priority
Requires kernel >= 2.6.13
@@ -344,6 +351,11 @@ endchoice
config LESS
bool "less"
default y
+ depends on PLATFORM_LINUX
+ depends on PLATFORM_LINUX
+ depends on PLATFORM_LINUX
+ depends on PLATFORM_LINUX
+ depends on PLATFORM_LINUX
help
'less' is a pager, meaning that it displays text files. It possesses
a wide array of features, and is an improvement over 'more'.
@@ -410,6 +422,7 @@ config FEATURE_LESS_LINENUMS
config HDPARM
bool "hdparm"
default y
+ depends on PLATFORM_LINUX
help
Get/Set hard drive parameters. Primarily intended for ATA
drives. Adds about 13k (or around 30k if you enable the
@@ -526,6 +539,7 @@ config MT
config RAIDAUTORUN
bool "raidautorun"
default y
+ depends on PLATFORM_LINUX
help
raidautorun tells the kernel md driver to
search and start RAID arrays.
@@ -533,7 +547,7 @@ config RAIDAUTORUN
config READAHEAD
bool "readahead"
default y
- depends on LFS
+ depends on LFS && PLATFORM_LINUX
help
Preload the files listed on the command line into RAM cache so that
subsequent reads on these files will not block on disk I/O.
@@ -550,6 +564,7 @@ config READAHEAD
config RFKILL
bool "rfkill"
default n # doesn't build on Ubuntu 9.04
+ depends on PLATFORM_LINUX
help
Enable/disable wireless devices.
@@ -570,6 +585,7 @@ config RUNLEVEL
config RX
bool "rx"
default y
+ depends on PLATFORM_LINUX
help
Receive files using the Xmodem protocol.
@@ -641,6 +657,7 @@ config WALL
config WATCHDOG
bool "watchdog"
default y
+ depends on PLATFORM_LINUX
help
The watchdog utility is used with hardware or software watchdog
device drivers. It opens the specified watchdog device special file
diff --git a/miscutils/conspy.c b/miscutils/conspy.c
index 509a0f2..a173d8e 100644
--- a/miscutils/conspy.c
+++ b/miscutils/conspy.c
@@ -17,6 +17,7 @@
//config:config CONSPY
//config: bool "conspy"
//config: default n
+//config: depends on PLATFORM_LINUX
//config: help
//config: A text-mode VNC like program for Linux virtual terminals.
//config: example: conspy NUM shared access to console num
diff --git a/miscutils/ubi_attach_detach.c b/miscutils/ubi_attach_detach.c
index 7b92a8a..0d63a10 100644
--- a/miscutils/ubi_attach_detach.c
+++ b/miscutils/ubi_attach_detach.c
@@ -12,12 +12,14 @@
//config:config UBIATTACH
//config: bool "ubiattach"
//config: default n
+//config: depends on PLATFORM_LINUX
//config: help
//config: Attach MTD device to an UBI device.
//config:
//config:config UBIDETACH
//config: bool "ubidetach"
//config: default n
+//config: depends on PLATFORM_LINUX
//config: help
//config: Detach MTD device from an UBI device.