From 5c69ad0ecdc18cf51b312c7c82848f4438fe1c8d Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 4 Aug 2020 08:24:19 +0100 Subject: 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 Signed-off-by: Denys Vlasenko --- miscutils/adjtimex.c | 1 - miscutils/beep.c | 1 - miscutils/conspy.c | 1 - miscutils/devfsd.c | 2 -- miscutils/fbsplash.c | 1 - miscutils/hdparm.c | 1 - miscutils/i2c_tools.c | 5 ----- miscutils/lsscsi.c | 1 - miscutils/nandwrite.c | 2 -- miscutils/partprobe.c | 1 - miscutils/raidautorun.c | 1 - miscutils/readahead.c | 1 - miscutils/rfkill.c | 1 - miscutils/rx.c | 1 - miscutils/setserial.c | 1 - miscutils/ubi_tools.c | 6 ------ miscutils/ubirename.c | 1 - miscutils/watchdog.c | 1 - 18 files changed, 29 deletions(-) (limited to 'miscutils') diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index 8ca90d5..a9de0f9 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c @@ -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. diff --git a/miscutils/beep.c b/miscutils/beep.c index 92faa1c..1669332 100644 --- a/miscutils/beep.c +++ b/miscutils/beep.c @@ -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: diff --git a/miscutils/conspy.c b/miscutils/conspy.c index a0e0d4e..fac11d3 100644 --- a/miscutils/conspy.c +++ b/miscutils/conspy.c @@ -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 diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index d47ee4d..17d8fb6 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c @@ -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! diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c index 1419578..2934d8e 100644 --- a/miscutils/fbsplash.c +++ b/miscutils/fbsplash.c @@ -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. diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index beabb1a..d25a246 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -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. diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index 82a559f..cc8b99a 100644 --- a/miscutils/i2c_tools.c +++ b/miscutils/i2c_tools.c @@ -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: diff --git a/miscutils/lsscsi.c b/miscutils/lsscsi.c index 76c2812..8f7eda7 100644 --- a/miscutils/lsscsi.c +++ b/miscutils/lsscsi.c @@ -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. diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index f111c63..52bf494 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c @@ -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 diff --git a/miscutils/partprobe.c b/miscutils/partprobe.c index 0abed6f..0fb1927 100644 --- a/miscutils/partprobe.c +++ b/miscutils/partprobe.c @@ -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. diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c index 39816ab..905862c 100644 --- a/miscutils/raidautorun.c +++ b/miscutils/raidautorun.c @@ -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. diff --git a/miscutils/readahead.c b/miscutils/readahead.c index cc0ba5b..d2bed20 100644 --- a/miscutils/readahead.c +++ b/miscutils/readahead.c @@ -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. diff --git a/miscutils/rfkill.c b/miscutils/rfkill.c index db7c837..9d91ea8 100644 --- a/miscutils/rfkill.c +++ b/miscutils/rfkill.c @@ -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: diff --git a/miscutils/rx.c b/miscutils/rx.c index 319ec1d..d8b0414 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c @@ -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. diff --git a/miscutils/setserial.c b/miscutils/setserial.c index 71b2745..1e75bf4 100644 --- a/miscutils/setserial.c +++ b/miscutils/setserial.c @@ -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. diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c index 8318df0..94a637e 100644 --- a/miscutils/ubi_tools.c +++ b/miscutils/ubi_tools.c @@ -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. diff --git a/miscutils/ubirename.c b/miscutils/ubirename.c index e7c5664..06a0ada 100644 --- a/miscutils/ubirename.c +++ b/miscutils/ubirename.c @@ -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 diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index 86600b7..8c8d721 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c @@ -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 -- cgit v1.1