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>
This commit is contained in:
Ron Yorston
2020-08-04 08:24:19 +01:00
committed by Denys Vlasenko
parent 9914d8b861
commit 5c69ad0ecd
109 changed files with 2 additions and 146 deletions

View File

@@ -13,7 +13,6 @@
//config:config ADJTIMEX
//config: bool "adjtimex (4.7 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Adjtimex reads and optionally sets adjustment parameters for
//config: the Linux clock adjustment algorithm.

View File

@@ -9,7 +9,6 @@
//config:config BEEP
//config: bool "beep (2.4 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: The beep applets beeps in a given freq/Hz.
//config:

View File

@@ -12,7 +12,6 @@
//config:config CONSPY
//config: bool "conspy (10 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: A text-mode VNC like program for Linux virtual terminals.
//config: example: conspy NUM shared access to console num

View File

@@ -56,7 +56,6 @@
//config:config DEVFSD
//config: bool "devfsd (obsolete)"
//config: default n
//config: select PLATFORM_LINUX
//config: select FEATURE_SYSLOG
//config: help
//config: This is deprecated and should NOT be used anymore.
@@ -99,7 +98,6 @@
//config:config FEATURE_DEVFS
//config: bool "Use devfs names for all devices (obsolete)"
//config: default n
//config: select PLATFORM_LINUX
//config: help
//config: This is obsolete and should NOT be used anymore.
//config: Use linux >= 2.6 (optionally with hotplug) and mdev instead!

View File

@@ -23,7 +23,6 @@
//config:config FBSPLASH
//config: bool "fbsplash (26 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Shows splash image and progress bar on framebuffer device.
//config: Can be used during boot phase of an embedded device.

View File

@@ -14,7 +14,6 @@
//config:config HDPARM
//config: bool "hdparm (25 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Get/Set hard drive parameters. Primarily intended for ATA
//config: drives.

View File

@@ -11,35 +11,30 @@
//config:config I2CGET
//config: bool "i2cget (5.5 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Read from I2C/SMBus chip registers.
//config:
//config:config I2CSET
//config: bool "i2cset (6.7 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Set I2C registers.
//config:
//config:config I2CDUMP
//config: bool "i2cdump (7.1 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Examine I2C registers.
//config:
//config:config I2CDETECT
//config: bool "i2cdetect (7.1 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Detect I2C chips.
//config:
//config:config I2CTRANSFER
//config: bool "i2ctransfer (4.0 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Send user-defined I2C messages in one transfer.
//config:

View File

@@ -9,7 +9,6 @@
//config:config LSSCSI
//config: bool "lsscsi (2.5 kb)"
//config: default y
//config: #select PLATFORM_LINUX
//config: help
//config: lsscsi is a utility for displaying information about SCSI buses in the
//config: system and devices connected to them.

View File

@@ -10,14 +10,12 @@
//config:config NANDWRITE
//config: bool "nandwrite (4.8 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Write to the specified MTD device, with bad blocks awareness
//config:
//config:config NANDDUMP
//config: bool "nanddump (5.2 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Dump the content of raw NAND chip

View File

@@ -7,7 +7,6 @@
//config:config PARTPROBE
//config: bool "partprobe (3.5 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Ask kernel to rescan partition table.

View File

@@ -9,7 +9,6 @@
//config:config RAIDAUTORUN
//config: bool "raidautorun (1.3 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: raidautorun tells the kernel md driver to
//config: search and start RAID arrays.

View File

@@ -13,7 +13,6 @@
//config: bool "readahead (1.5 kb)"
//config: default y
//config: depends on LFS
//config: select PLATFORM_LINUX
//config: help
//config: Preload the files listed on the command line into RAM cache so that
//config: subsequent reads on these files will not block on disk I/O.

View File

@@ -9,7 +9,6 @@
//config:config RFKILL
//config: bool "rfkill (4.4 kb)"
//config: default n # doesn't build on Ubuntu 9.04
//config: select PLATFORM_LINUX
//config: help
//config: Enable/disable wireless devices.
//config:

View File

@@ -17,7 +17,6 @@
//config:config RX
//config: bool "rx (2.9 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Receive files using the Xmodem protocol.

View File

@@ -10,7 +10,6 @@
//config:config SETSERIAL
//config: bool "setserial (6.9 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Retrieve or set Linux serial port.

View File

@@ -6,42 +6,36 @@
//config:config UBIATTACH
//config: bool "ubiattach (4.2 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Attach MTD device to an UBI device.
//config:
//config:config UBIDETACH
//config: bool "ubidetach (4.1 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Detach MTD device from an UBI device.
//config:
//config:config UBIMKVOL
//config: bool "ubimkvol (5.3 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Create a UBI volume.
//config:
//config:config UBIRMVOL
//config: bool "ubirmvol (4.9 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Delete a UBI volume.
//config:
//config:config UBIRSVOL
//config: bool "ubirsvol (4.2 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Resize a UBI volume.
//config:
//config:config UBIUPDATEVOL
//config: bool "ubiupdatevol (5.2 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Update a UBI volume.

View File

@@ -9,7 +9,6 @@
//config:config UBIRENAME
//config: bool "ubirename (2.4 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: Utility to rename UBI volumes

View File

@@ -11,7 +11,6 @@
//config:config WATCHDOG
//config: bool "watchdog (5.3 kb)"
//config: default y
//config: select PLATFORM_LINUX
//config: help
//config: The watchdog utility is used with hardware or software watchdog
//config: device drivers. It opens the specified watchdog device special file