diff options
| author | Ron Yorston <rmy@pobox.com> | 2020-08-04 08:24:19 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-08-13 17:12:56 +0200 |
| commit | 5c69ad0ecdc18cf51b312c7c82848f4438fe1c8d (patch) | |
| tree | aeb911b86b6dab262429a8a9fa76bcdf697b02a3 /miscutils | |
| parent | 9914d8b861a0edb42051bd68a37bceb0562daa70 (diff) | |
| download | busybox-w32-5c69ad0ecdc18cf51b312c7c82848f4438fe1c8d.tar.gz busybox-w32-5c69ad0ecdc18cf51b312c7c82848f4438fe1c8d.tar.bz2 busybox-w32-5c69ad0ecdc18cf51b312c7c82848f4438fe1c8d.zip | |
build system: drop PLATFORM_LINUX
PLATFORM_LINUX is a hidden configuration option which is disabled by
default and enabled at over a hundred locations for features that are
deemed to be Linux specific.
The only effect of PLATFORM_LINUX is to control compilation of
libbb/match_fstype.c. This file is only needed by mount and umount.
Remove all references to PLATFORM_LINUX and compile match_fstype.c
if mount or umount is enabled.
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/adjtimex.c | 1 | ||||
| -rw-r--r-- | miscutils/beep.c | 1 | ||||
| -rw-r--r-- | miscutils/conspy.c | 1 | ||||
| -rw-r--r-- | miscutils/devfsd.c | 2 | ||||
| -rw-r--r-- | miscutils/fbsplash.c | 1 | ||||
| -rw-r--r-- | miscutils/hdparm.c | 1 | ||||
| -rw-r--r-- | miscutils/i2c_tools.c | 5 | ||||
| -rw-r--r-- | miscutils/lsscsi.c | 1 | ||||
| -rw-r--r-- | miscutils/nandwrite.c | 2 | ||||
| -rw-r--r-- | miscutils/partprobe.c | 1 | ||||
| -rw-r--r-- | miscutils/raidautorun.c | 1 | ||||
| -rw-r--r-- | miscutils/readahead.c | 1 | ||||
| -rw-r--r-- | miscutils/rfkill.c | 1 | ||||
| -rw-r--r-- | miscutils/rx.c | 1 | ||||
| -rw-r--r-- | miscutils/setserial.c | 1 | ||||
| -rw-r--r-- | miscutils/ubi_tools.c | 6 | ||||
| -rw-r--r-- | miscutils/ubirename.c | 1 | ||||
| -rw-r--r-- | miscutils/watchdog.c | 1 |
18 files changed, 0 insertions, 29 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index 8ca90d58a..a9de0f9aa 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | //config:config ADJTIMEX | 13 | //config:config ADJTIMEX |
| 14 | //config: bool "adjtimex (4.7 kb)" | 14 | //config: bool "adjtimex (4.7 kb)" |
| 15 | //config: default y | 15 | //config: default y |
| 16 | //config: select PLATFORM_LINUX | ||
| 17 | //config: help | 16 | //config: help |
| 18 | //config: Adjtimex reads and optionally sets adjustment parameters for | 17 | //config: Adjtimex reads and optionally sets adjustment parameters for |
| 19 | //config: the Linux clock adjustment algorithm. | 18 | //config: the Linux clock adjustment algorithm. |
diff --git a/miscutils/beep.c b/miscutils/beep.c index 92faa1cd5..1669332fd 100644 --- a/miscutils/beep.c +++ b/miscutils/beep.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | //config:config BEEP | 9 | //config:config BEEP |
| 10 | //config: bool "beep (2.4 kb)" | 10 | //config: bool "beep (2.4 kb)" |
| 11 | //config: default y | 11 | //config: default y |
| 12 | //config: select PLATFORM_LINUX | ||
| 13 | //config: help | 12 | //config: help |
| 14 | //config: The beep applets beeps in a given freq/Hz. | 13 | //config: The beep applets beeps in a given freq/Hz. |
| 15 | //config: | 14 | //config: |
diff --git a/miscutils/conspy.c b/miscutils/conspy.c index a0e0d4e4b..fac11d339 100644 --- a/miscutils/conspy.c +++ b/miscutils/conspy.c | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | //config:config CONSPY | 12 | //config:config CONSPY |
| 13 | //config: bool "conspy (10 kb)" | 13 | //config: bool "conspy (10 kb)" |
| 14 | //config: default y | 14 | //config: default y |
| 15 | //config: select PLATFORM_LINUX | ||
| 16 | //config: help | 15 | //config: help |
| 17 | //config: A text-mode VNC like program for Linux virtual terminals. | 16 | //config: A text-mode VNC like program for Linux virtual terminals. |
| 18 | //config: example: conspy NUM shared access to console num | 17 | //config: example: conspy NUM shared access to console num |
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index d47ee4d47..17d8fb6b9 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
| @@ -56,7 +56,6 @@ | |||
| 56 | //config:config DEVFSD | 56 | //config:config DEVFSD |
| 57 | //config: bool "devfsd (obsolete)" | 57 | //config: bool "devfsd (obsolete)" |
| 58 | //config: default n | 58 | //config: default n |
| 59 | //config: select PLATFORM_LINUX | ||
| 60 | //config: select FEATURE_SYSLOG | 59 | //config: select FEATURE_SYSLOG |
| 61 | //config: help | 60 | //config: help |
| 62 | //config: This is deprecated and should NOT be used anymore. | 61 | //config: This is deprecated and should NOT be used anymore. |
| @@ -99,7 +98,6 @@ | |||
| 99 | //config:config FEATURE_DEVFS | 98 | //config:config FEATURE_DEVFS |
| 100 | //config: bool "Use devfs names for all devices (obsolete)" | 99 | //config: bool "Use devfs names for all devices (obsolete)" |
| 101 | //config: default n | 100 | //config: default n |
| 102 | //config: select PLATFORM_LINUX | ||
| 103 | //config: help | 101 | //config: help |
| 104 | //config: This is obsolete and should NOT be used anymore. | 102 | //config: This is obsolete and should NOT be used anymore. |
| 105 | //config: Use linux >= 2.6 (optionally with hotplug) and mdev instead! | 103 | //config: Use linux >= 2.6 (optionally with hotplug) and mdev instead! |
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c index 141957809..2934d8eb7 100644 --- a/miscutils/fbsplash.c +++ b/miscutils/fbsplash.c | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | //config:config FBSPLASH | 23 | //config:config FBSPLASH |
| 24 | //config: bool "fbsplash (26 kb)" | 24 | //config: bool "fbsplash (26 kb)" |
| 25 | //config: default y | 25 | //config: default y |
| 26 | //config: select PLATFORM_LINUX | ||
| 27 | //config: help | 26 | //config: help |
| 28 | //config: Shows splash image and progress bar on framebuffer device. | 27 | //config: Shows splash image and progress bar on framebuffer device. |
| 29 | //config: Can be used during boot phase of an embedded device. | 28 | //config: Can be used during boot phase of an embedded device. |
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index beabb1ad5..d25a2466e 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | //config:config HDPARM | 14 | //config:config HDPARM |
| 15 | //config: bool "hdparm (25 kb)" | 15 | //config: bool "hdparm (25 kb)" |
| 16 | //config: default y | 16 | //config: default y |
| 17 | //config: select PLATFORM_LINUX | ||
| 18 | //config: help | 17 | //config: help |
| 19 | //config: Get/Set hard drive parameters. Primarily intended for ATA | 18 | //config: Get/Set hard drive parameters. Primarily intended for ATA |
| 20 | //config: drives. | 19 | //config: drives. |
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index 82a559f74..cc8b99a92 100644 --- a/miscutils/i2c_tools.c +++ b/miscutils/i2c_tools.c | |||
| @@ -11,35 +11,30 @@ | |||
| 11 | //config:config I2CGET | 11 | //config:config I2CGET |
| 12 | //config: bool "i2cget (5.5 kb)" | 12 | //config: bool "i2cget (5.5 kb)" |
| 13 | //config: default y | 13 | //config: default y |
| 14 | //config: select PLATFORM_LINUX | ||
| 15 | //config: help | 14 | //config: help |
| 16 | //config: Read from I2C/SMBus chip registers. | 15 | //config: Read from I2C/SMBus chip registers. |
| 17 | //config: | 16 | //config: |
| 18 | //config:config I2CSET | 17 | //config:config I2CSET |
| 19 | //config: bool "i2cset (6.7 kb)" | 18 | //config: bool "i2cset (6.7 kb)" |
| 20 | //config: default y | 19 | //config: default y |
| 21 | //config: select PLATFORM_LINUX | ||
| 22 | //config: help | 20 | //config: help |
| 23 | //config: Set I2C registers. | 21 | //config: Set I2C registers. |
| 24 | //config: | 22 | //config: |
| 25 | //config:config I2CDUMP | 23 | //config:config I2CDUMP |
| 26 | //config: bool "i2cdump (7.1 kb)" | 24 | //config: bool "i2cdump (7.1 kb)" |
| 27 | //config: default y | 25 | //config: default y |
| 28 | //config: select PLATFORM_LINUX | ||
| 29 | //config: help | 26 | //config: help |
| 30 | //config: Examine I2C registers. | 27 | //config: Examine I2C registers. |
| 31 | //config: | 28 | //config: |
| 32 | //config:config I2CDETECT | 29 | //config:config I2CDETECT |
| 33 | //config: bool "i2cdetect (7.1 kb)" | 30 | //config: bool "i2cdetect (7.1 kb)" |
| 34 | //config: default y | 31 | //config: default y |
| 35 | //config: select PLATFORM_LINUX | ||
| 36 | //config: help | 32 | //config: help |
| 37 | //config: Detect I2C chips. | 33 | //config: Detect I2C chips. |
| 38 | //config: | 34 | //config: |
| 39 | //config:config I2CTRANSFER | 35 | //config:config I2CTRANSFER |
| 40 | //config: bool "i2ctransfer (4.0 kb)" | 36 | //config: bool "i2ctransfer (4.0 kb)" |
| 41 | //config: default y | 37 | //config: default y |
| 42 | //config: select PLATFORM_LINUX | ||
| 43 | //config: help | 38 | //config: help |
| 44 | //config: Send user-defined I2C messages in one transfer. | 39 | //config: Send user-defined I2C messages in one transfer. |
| 45 | //config: | 40 | //config: |
diff --git a/miscutils/lsscsi.c b/miscutils/lsscsi.c index 76c281264..8f7eda761 100644 --- a/miscutils/lsscsi.c +++ b/miscutils/lsscsi.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | //config:config LSSCSI | 9 | //config:config LSSCSI |
| 10 | //config: bool "lsscsi (2.5 kb)" | 10 | //config: bool "lsscsi (2.5 kb)" |
| 11 | //config: default y | 11 | //config: default y |
| 12 | //config: #select PLATFORM_LINUX | ||
| 13 | //config: help | 12 | //config: help |
| 14 | //config: lsscsi is a utility for displaying information about SCSI buses in the | 13 | //config: lsscsi is a utility for displaying information about SCSI buses in the |
| 15 | //config: system and devices connected to them. | 14 | //config: system and devices connected to them. |
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index f111c6363..52bf49434 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c | |||
| @@ -10,14 +10,12 @@ | |||
| 10 | //config:config NANDWRITE | 10 | //config:config NANDWRITE |
| 11 | //config: bool "nandwrite (4.8 kb)" | 11 | //config: bool "nandwrite (4.8 kb)" |
| 12 | //config: default y | 12 | //config: default y |
| 13 | //config: select PLATFORM_LINUX | ||
| 14 | //config: help | 13 | //config: help |
| 15 | //config: Write to the specified MTD device, with bad blocks awareness | 14 | //config: Write to the specified MTD device, with bad blocks awareness |
| 16 | //config: | 15 | //config: |
| 17 | //config:config NANDDUMP | 16 | //config:config NANDDUMP |
| 18 | //config: bool "nanddump (5.2 kb)" | 17 | //config: bool "nanddump (5.2 kb)" |
| 19 | //config: default y | 18 | //config: default y |
| 20 | //config: select PLATFORM_LINUX | ||
| 21 | //config: help | 19 | //config: help |
| 22 | //config: Dump the content of raw NAND chip | 20 | //config: Dump the content of raw NAND chip |
| 23 | 21 | ||
diff --git a/miscutils/partprobe.c b/miscutils/partprobe.c index 0abed6ff1..0fb1927b7 100644 --- a/miscutils/partprobe.c +++ b/miscutils/partprobe.c | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | //config:config PARTPROBE | 7 | //config:config PARTPROBE |
| 8 | //config: bool "partprobe (3.5 kb)" | 8 | //config: bool "partprobe (3.5 kb)" |
| 9 | //config: default y | 9 | //config: default y |
| 10 | //config: select PLATFORM_LINUX | ||
| 11 | //config: help | 10 | //config: help |
| 12 | //config: Ask kernel to rescan partition table. | 11 | //config: Ask kernel to rescan partition table. |
| 13 | 12 | ||
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c index 39816ab1f..905862cf7 100644 --- a/miscutils/raidautorun.c +++ b/miscutils/raidautorun.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | //config:config RAIDAUTORUN | 9 | //config:config RAIDAUTORUN |
| 10 | //config: bool "raidautorun (1.3 kb)" | 10 | //config: bool "raidautorun (1.3 kb)" |
| 11 | //config: default y | 11 | //config: default y |
| 12 | //config: select PLATFORM_LINUX | ||
| 13 | //config: help | 12 | //config: help |
| 14 | //config: raidautorun tells the kernel md driver to | 13 | //config: raidautorun tells the kernel md driver to |
| 15 | //config: search and start RAID arrays. | 14 | //config: search and start RAID arrays. |
diff --git a/miscutils/readahead.c b/miscutils/readahead.c index cc0ba5ba3..d2bed2092 100644 --- a/miscutils/readahead.c +++ b/miscutils/readahead.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | //config: bool "readahead (1.5 kb)" | 13 | //config: bool "readahead (1.5 kb)" |
| 14 | //config: default y | 14 | //config: default y |
| 15 | //config: depends on LFS | 15 | //config: depends on LFS |
| 16 | //config: select PLATFORM_LINUX | ||
| 17 | //config: help | 16 | //config: help |
| 18 | //config: Preload the files listed on the command line into RAM cache so that | 17 | //config: Preload the files listed on the command line into RAM cache so that |
| 19 | //config: subsequent reads on these files will not block on disk I/O. | 18 | //config: subsequent reads on these files will not block on disk I/O. |
diff --git a/miscutils/rfkill.c b/miscutils/rfkill.c index db7c83750..9d91ea82f 100644 --- a/miscutils/rfkill.c +++ b/miscutils/rfkill.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | //config:config RFKILL | 9 | //config:config RFKILL |
| 10 | //config: bool "rfkill (4.4 kb)" | 10 | //config: bool "rfkill (4.4 kb)" |
| 11 | //config: default n # doesn't build on Ubuntu 9.04 | 11 | //config: default n # doesn't build on Ubuntu 9.04 |
| 12 | //config: select PLATFORM_LINUX | ||
| 13 | //config: help | 12 | //config: help |
| 14 | //config: Enable/disable wireless devices. | 13 | //config: Enable/disable wireless devices. |
| 15 | //config: | 14 | //config: |
diff --git a/miscutils/rx.c b/miscutils/rx.c index 319ec1d49..d8b041480 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
| @@ -17,7 +17,6 @@ | |||
| 17 | //config:config RX | 17 | //config:config RX |
| 18 | //config: bool "rx (2.9 kb)" | 18 | //config: bool "rx (2.9 kb)" |
| 19 | //config: default y | 19 | //config: default y |
| 20 | //config: select PLATFORM_LINUX | ||
| 21 | //config: help | 20 | //config: help |
| 22 | //config: Receive files using the Xmodem protocol. | 21 | //config: Receive files using the Xmodem protocol. |
| 23 | 22 | ||
diff --git a/miscutils/setserial.c b/miscutils/setserial.c index 71b274568..1e75bf433 100644 --- a/miscutils/setserial.c +++ b/miscutils/setserial.c | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | //config:config SETSERIAL | 10 | //config:config SETSERIAL |
| 11 | //config: bool "setserial (6.9 kb)" | 11 | //config: bool "setserial (6.9 kb)" |
| 12 | //config: default y | 12 | //config: default y |
| 13 | //config: select PLATFORM_LINUX | ||
| 14 | //config: help | 13 | //config: help |
| 15 | //config: Retrieve or set Linux serial port. | 14 | //config: Retrieve or set Linux serial port. |
| 16 | 15 | ||
diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c index 8318df0f9..94a637eee 100644 --- a/miscutils/ubi_tools.c +++ b/miscutils/ubi_tools.c | |||
| @@ -6,42 +6,36 @@ | |||
| 6 | //config:config UBIATTACH | 6 | //config:config UBIATTACH |
| 7 | //config: bool "ubiattach (4.2 kb)" | 7 | //config: bool "ubiattach (4.2 kb)" |
| 8 | //config: default y | 8 | //config: default y |
| 9 | //config: select PLATFORM_LINUX | ||
| 10 | //config: help | 9 | //config: help |
| 11 | //config: Attach MTD device to an UBI device. | 10 | //config: Attach MTD device to an UBI device. |
| 12 | //config: | 11 | //config: |
| 13 | //config:config UBIDETACH | 12 | //config:config UBIDETACH |
| 14 | //config: bool "ubidetach (4.1 kb)" | 13 | //config: bool "ubidetach (4.1 kb)" |
| 15 | //config: default y | 14 | //config: default y |
| 16 | //config: select PLATFORM_LINUX | ||
| 17 | //config: help | 15 | //config: help |
| 18 | //config: Detach MTD device from an UBI device. | 16 | //config: Detach MTD device from an UBI device. |
| 19 | //config: | 17 | //config: |
| 20 | //config:config UBIMKVOL | 18 | //config:config UBIMKVOL |
| 21 | //config: bool "ubimkvol (5.3 kb)" | 19 | //config: bool "ubimkvol (5.3 kb)" |
| 22 | //config: default y | 20 | //config: default y |
| 23 | //config: select PLATFORM_LINUX | ||
| 24 | //config: help | 21 | //config: help |
| 25 | //config: Create a UBI volume. | 22 | //config: Create a UBI volume. |
| 26 | //config: | 23 | //config: |
| 27 | //config:config UBIRMVOL | 24 | //config:config UBIRMVOL |
| 28 | //config: bool "ubirmvol (4.9 kb)" | 25 | //config: bool "ubirmvol (4.9 kb)" |
| 29 | //config: default y | 26 | //config: default y |
| 30 | //config: select PLATFORM_LINUX | ||
| 31 | //config: help | 27 | //config: help |
| 32 | //config: Delete a UBI volume. | 28 | //config: Delete a UBI volume. |
| 33 | //config: | 29 | //config: |
| 34 | //config:config UBIRSVOL | 30 | //config:config UBIRSVOL |
| 35 | //config: bool "ubirsvol (4.2 kb)" | 31 | //config: bool "ubirsvol (4.2 kb)" |
| 36 | //config: default y | 32 | //config: default y |
| 37 | //config: select PLATFORM_LINUX | ||
| 38 | //config: help | 33 | //config: help |
| 39 | //config: Resize a UBI volume. | 34 | //config: Resize a UBI volume. |
| 40 | //config: | 35 | //config: |
| 41 | //config:config UBIUPDATEVOL | 36 | //config:config UBIUPDATEVOL |
| 42 | //config: bool "ubiupdatevol (5.2 kb)" | 37 | //config: bool "ubiupdatevol (5.2 kb)" |
| 43 | //config: default y | 38 | //config: default y |
| 44 | //config: select PLATFORM_LINUX | ||
| 45 | //config: help | 39 | //config: help |
| 46 | //config: Update a UBI volume. | 40 | //config: Update a UBI volume. |
| 47 | 41 | ||
diff --git a/miscutils/ubirename.c b/miscutils/ubirename.c index e7c56640c..06a0adacf 100644 --- a/miscutils/ubirename.c +++ b/miscutils/ubirename.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | //config:config UBIRENAME | 9 | //config:config UBIRENAME |
| 10 | //config: bool "ubirename (2.4 kb)" | 10 | //config: bool "ubirename (2.4 kb)" |
| 11 | //config: default y | 11 | //config: default y |
| 12 | //config: select PLATFORM_LINUX | ||
| 13 | //config: help | 12 | //config: help |
| 14 | //config: Utility to rename UBI volumes | 13 | //config: Utility to rename UBI volumes |
| 15 | 14 | ||
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index 86600b72f..8c8d7217f 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | //config:config WATCHDOG | 11 | //config:config WATCHDOG |
| 12 | //config: bool "watchdog (5.3 kb)" | 12 | //config: bool "watchdog (5.3 kb)" |
| 13 | //config: default y | 13 | //config: default y |
| 14 | //config: select PLATFORM_LINUX | ||
| 15 | //config: help | 14 | //config: help |
| 16 | //config: The watchdog utility is used with hardware or software watchdog | 15 | //config: The watchdog utility is used with hardware or software watchdog |
| 17 | //config: device drivers. It opens the specified watchdog device special file | 16 | //config: device drivers. It opens the specified watchdog device special file |
