diff options
author | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-07-19 00:44:56 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-19 00:44:56 +0200 |
commit | 1d7266d3b59be361763dab61f680103bbb70f3e9 (patch) | |
tree | 631f533af2f9ceb9ba8d5cfcc978a3c33a0393cc /miscutils | |
parent | b175462422f02a159a14dc5561d8bef6f84b2b66 (diff) | |
download | busybox-w32-1d7266d3b59be361763dab61f680103bbb70f3e9.tar.gz busybox-w32-1d7266d3b59be361763dab61f680103bbb70f3e9.tar.bz2 busybox-w32-1d7266d3b59be361763dab61f680103bbb70f3e9.zip |
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.src | 19 | ||||
-rw-r--r-- | miscutils/conspy.c | 1 | ||||
-rw-r--r-- | miscutils/ubi_attach_detach.c | 2 |
3 files changed, 21 insertions, 1 deletions
diff --git a/miscutils/Config.src b/miscutils/Config.src index 2f7c50271..e89e231e6 100644 --- a/miscutils/Config.src +++ b/miscutils/Config.src | |||
@@ -10,6 +10,7 @@ INSERT | |||
10 | config ADJTIMEX | 10 | config ADJTIMEX |
11 | bool "adjtimex" | 11 | bool "adjtimex" |
12 | default y | 12 | default y |
13 | depends on PLATFORM_LINUX | ||
13 | help | 14 | help |
14 | Adjtimex reads and optionally sets adjustment parameters for | 15 | Adjtimex reads and optionally sets adjustment parameters for |
15 | the Linux clock adjustment algorithm. | 16 | the Linux clock adjustment algorithm. |
@@ -24,6 +25,7 @@ config BBCONFIG | |||
24 | config BEEP | 25 | config BEEP |
25 | bool "beep" | 26 | bool "beep" |
26 | default y | 27 | default y |
28 | depends on PLATFORM_LINUX | ||
27 | help | 29 | help |
28 | The beep applets beeps in a given freq/Hz. | 30 | The beep applets beeps in a given freq/Hz. |
29 | 31 | ||
@@ -180,6 +182,7 @@ config FEATURE_DC_LIBM | |||
180 | config DEVFSD | 182 | config DEVFSD |
181 | bool "devfsd (obsolete)" | 183 | bool "devfsd (obsolete)" |
182 | default n | 184 | default n |
185 | depends on PLATFORM_LINUX | ||
183 | select FEATURE_SYSLOG | 186 | select FEATURE_SYSLOG |
184 | help | 187 | help |
185 | This is deprecated and should NOT be used anymore. | 188 | This is deprecated and should NOT be used anymore. |
@@ -223,6 +226,7 @@ config DEVFSD_VERBOSE | |||
223 | config FEATURE_DEVFS | 226 | config FEATURE_DEVFS |
224 | bool "Use devfs names for all devices (obsolete)" | 227 | bool "Use devfs names for all devices (obsolete)" |
225 | default n | 228 | default n |
229 | depends on PLATFORM_LINUX | ||
226 | help | 230 | help |
227 | This is obsolete and should NOT be used anymore. | 231 | This is obsolete and should NOT be used anymore. |
228 | Use linux >= 2.6 (optionally with hotplug) and mdev instead! | 232 | Use linux >= 2.6 (optionally with hotplug) and mdev instead! |
@@ -242,6 +246,7 @@ config DEVMEM | |||
242 | config EJECT | 246 | config EJECT |
243 | bool "eject" | 247 | bool "eject" |
244 | default y | 248 | default y |
249 | depends on PLATFORM_LINUX | ||
245 | help | 250 | help |
246 | Used to eject cdroms. (defaults to /dev/cdrom) | 251 | Used to eject cdroms. (defaults to /dev/cdrom) |
247 | 252 | ||
@@ -256,6 +261,7 @@ config FEATURE_EJECT_SCSI | |||
256 | config FBSPLASH | 261 | config FBSPLASH |
257 | bool "fbsplash" | 262 | bool "fbsplash" |
258 | default y | 263 | default y |
264 | depends on PLATFORM_LINUX | ||
259 | help | 265 | help |
260 | Shows splash image and progress bar on framebuffer device. | 266 | Shows splash image and progress bar on framebuffer device. |
261 | Can be used during boot phase of an embedded device. ~2kb. | 267 | Can be used during boot phase of an embedded device. ~2kb. |
@@ -305,6 +311,7 @@ config FLASH_ERASEALL | |||
305 | config IONICE | 311 | config IONICE |
306 | bool "ionice" | 312 | bool "ionice" |
307 | default y | 313 | default y |
314 | depends on PLATFORM_LINUX | ||
308 | help | 315 | help |
309 | Set/set program io scheduling class and priority | 316 | Set/set program io scheduling class and priority |
310 | Requires kernel >= 2.6.13 | 317 | Requires kernel >= 2.6.13 |
@@ -344,6 +351,11 @@ endchoice | |||
344 | config LESS | 351 | config LESS |
345 | bool "less" | 352 | bool "less" |
346 | default y | 353 | default y |
354 | depends on PLATFORM_LINUX | ||
355 | depends on PLATFORM_LINUX | ||
356 | depends on PLATFORM_LINUX | ||
357 | depends on PLATFORM_LINUX | ||
358 | depends on PLATFORM_LINUX | ||
347 | help | 359 | help |
348 | 'less' is a pager, meaning that it displays text files. It possesses | 360 | 'less' is a pager, meaning that it displays text files. It possesses |
349 | a wide array of features, and is an improvement over 'more'. | 361 | a wide array of features, and is an improvement over 'more'. |
@@ -410,6 +422,7 @@ config FEATURE_LESS_LINENUMS | |||
410 | config HDPARM | 422 | config HDPARM |
411 | bool "hdparm" | 423 | bool "hdparm" |
412 | default y | 424 | default y |
425 | depends on PLATFORM_LINUX | ||
413 | help | 426 | help |
414 | Get/Set hard drive parameters. Primarily intended for ATA | 427 | Get/Set hard drive parameters. Primarily intended for ATA |
415 | drives. Adds about 13k (or around 30k if you enable the | 428 | drives. Adds about 13k (or around 30k if you enable the |
@@ -526,6 +539,7 @@ config MT | |||
526 | config RAIDAUTORUN | 539 | config RAIDAUTORUN |
527 | bool "raidautorun" | 540 | bool "raidautorun" |
528 | default y | 541 | default y |
542 | depends on PLATFORM_LINUX | ||
529 | help | 543 | help |
530 | raidautorun tells the kernel md driver to | 544 | raidautorun tells the kernel md driver to |
531 | search and start RAID arrays. | 545 | search and start RAID arrays. |
@@ -533,7 +547,7 @@ config RAIDAUTORUN | |||
533 | config READAHEAD | 547 | config READAHEAD |
534 | bool "readahead" | 548 | bool "readahead" |
535 | default y | 549 | default y |
536 | depends on LFS | 550 | depends on LFS && PLATFORM_LINUX |
537 | help | 551 | help |
538 | Preload the files listed on the command line into RAM cache so that | 552 | Preload the files listed on the command line into RAM cache so that |
539 | subsequent reads on these files will not block on disk I/O. | 553 | subsequent reads on these files will not block on disk I/O. |
@@ -550,6 +564,7 @@ config READAHEAD | |||
550 | config RFKILL | 564 | config RFKILL |
551 | bool "rfkill" | 565 | bool "rfkill" |
552 | default n # doesn't build on Ubuntu 9.04 | 566 | default n # doesn't build on Ubuntu 9.04 |
567 | depends on PLATFORM_LINUX | ||
553 | help | 568 | help |
554 | Enable/disable wireless devices. | 569 | Enable/disable wireless devices. |
555 | 570 | ||
@@ -570,6 +585,7 @@ config RUNLEVEL | |||
570 | config RX | 585 | config RX |
571 | bool "rx" | 586 | bool "rx" |
572 | default y | 587 | default y |
588 | depends on PLATFORM_LINUX | ||
573 | help | 589 | help |
574 | Receive files using the Xmodem protocol. | 590 | Receive files using the Xmodem protocol. |
575 | 591 | ||
@@ -641,6 +657,7 @@ config WALL | |||
641 | config WATCHDOG | 657 | config WATCHDOG |
642 | bool "watchdog" | 658 | bool "watchdog" |
643 | default y | 659 | default y |
660 | depends on PLATFORM_LINUX | ||
644 | help | 661 | help |
645 | The watchdog utility is used with hardware or software watchdog | 662 | The watchdog utility is used with hardware or software watchdog |
646 | device drivers. It opens the specified watchdog device special file | 663 | device drivers. It opens the specified watchdog device special file |
diff --git a/miscutils/conspy.c b/miscutils/conspy.c index 509a0f271..a173d8efd 100644 --- a/miscutils/conspy.c +++ b/miscutils/conspy.c | |||
@@ -17,6 +17,7 @@ | |||
17 | //config:config CONSPY | 17 | //config:config CONSPY |
18 | //config: bool "conspy" | 18 | //config: bool "conspy" |
19 | //config: default n | 19 | //config: default n |
20 | //config: depends on PLATFORM_LINUX | ||
20 | //config: help | 21 | //config: help |
21 | //config: A text-mode VNC like program for Linux virtual terminals. | 22 | //config: A text-mode VNC like program for Linux virtual terminals. |
22 | //config: example: conspy NUM shared access to console num | 23 | //config: example: conspy NUM shared access to console num |
diff --git a/miscutils/ubi_attach_detach.c b/miscutils/ubi_attach_detach.c index 7b92a8afc..0d63a10d5 100644 --- a/miscutils/ubi_attach_detach.c +++ b/miscutils/ubi_attach_detach.c | |||
@@ -12,12 +12,14 @@ | |||
12 | //config:config UBIATTACH | 12 | //config:config UBIATTACH |
13 | //config: bool "ubiattach" | 13 | //config: bool "ubiattach" |
14 | //config: default n | 14 | //config: default n |
15 | //config: depends on PLATFORM_LINUX | ||
15 | //config: help | 16 | //config: help |
16 | //config: Attach MTD device to an UBI device. | 17 | //config: Attach MTD device to an UBI device. |
17 | //config: | 18 | //config: |
18 | //config:config UBIDETACH | 19 | //config:config UBIDETACH |
19 | //config: bool "ubidetach" | 20 | //config: bool "ubidetach" |
20 | //config: default n | 21 | //config: default n |
22 | //config: depends on PLATFORM_LINUX | ||
21 | //config: help | 23 | //config: help |
22 | //config: Detach MTD device from an UBI device. | 24 | //config: Detach MTD device from an UBI device. |
23 | 25 | ||