Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 Feb 2011 21:24:08 +0000 (22:24 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 Feb 2011 21:24:08 +0000 (22:24 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
17 files changed:
Config.in
console-tools/Config.src
coreutils/Config.src
coreutils/date.c
e2fsprogs/Config.src
libbb/Config.src
miscutils/Config.src
miscutils/conspy.c
miscutils/nandwrite.c
miscutils/ubi_attach_detach.c
modutils/Config.src
networking/Config.src
networking/ping.c
networking/udhcp/Config.src
procps/Config.src
sysklogd/Config.src
util-linux/Config.src

index 3361e7381e09892c37e7ffa73a0185e184777d8f..94414db040387dfdb9ab1e1d1b650b5211e26de8 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -385,7 +385,7 @@ config FEATURE_SUID_CONFIG_QUIET
 config SELINUX
        bool "Support NSA Security Enhanced Linux"
        default n
 config SELINUX
        bool "Support NSA Security Enhanced Linux"
        default n
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Enable support for SELinux in applets ls, ps, and id. Also provide
          the option of compiling in SELinux applets.
        help
          Enable support for SELinux in applets ls, ps, and id. Also provide
          the option of compiling in SELinux applets.
index cdb26800e2cd9d38d20fa5b494438874684bae8f..c65704478454913908079eacc344aad47cba0927 100644 (file)
@@ -10,7 +10,7 @@ INSERT
 config CHVT
        bool "chvt"
        default y
 config CHVT
        bool "chvt"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program is used to change to another terminal.
          Example: chvt 4 (change to terminal /dev/tty4)
        help
          This program is used to change to another terminal.
          Example: chvt 4 (change to terminal /dev/tty4)
@@ -18,7 +18,7 @@ config CHVT
 config FGCONSOLE
        bool "fgconsole"
        default y
 config FGCONSOLE
        bool "fgconsole"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program prints active (foreground) console number.
 
        help
          This program prints active (foreground) console number.
 
@@ -31,14 +31,14 @@ config CLEAR
 config DEALLOCVT
        bool "deallocvt"
        default y
 config DEALLOCVT
        bool "deallocvt"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program deallocates unused virtual consoles.
 
 config DUMPKMAP
        bool "dumpkmap"
        default y
        help
          This program deallocates unused virtual consoles.
 
 config DUMPKMAP
        bool "dumpkmap"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program dumps the kernel's keyboard translation table to
          stdout, in binary format. You can then use loadkmap to load it.
        help
          This program dumps the kernel's keyboard translation table to
          stdout, in binary format. You can then use loadkmap to load it.
@@ -46,21 +46,21 @@ config DUMPKMAP
 config KBD_MODE
        bool "kbd_mode"
        default y
 config KBD_MODE
        bool "kbd_mode"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program reports and sets keyboard mode.
 
 config LOADFONT
        bool "loadfont"
        default y
        help
          This program reports and sets keyboard mode.
 
 config LOADFONT
        bool "loadfont"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program loads a console font from standard input.
 
 config LOADKMAP
        bool "loadkmap"
        default y
        help
          This program loads a console font from standard input.
 
 config LOADKMAP
        bool "loadkmap"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program loads a keyboard translation table from
          standard input.
        help
          This program loads a keyboard translation table from
          standard input.
@@ -68,7 +68,7 @@ config LOADKMAP
 config OPENVT
        bool "openvt"
        default y
 config OPENVT
        bool "openvt"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program is used to start a command on an unused
          virtual terminal.
        help
          This program is used to start a command on an unused
          virtual terminal.
@@ -100,7 +100,7 @@ config FEATURE_RESIZE_PRINT
 config SETCONSOLE
        bool "setconsole"
        default y
 config SETCONSOLE
        bool "setconsole"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program redirects the system console to another device,
          like the current tty while logged in via telnet.
        help
          This program redirects the system console to another device,
          like the current tty while logged in via telnet.
@@ -115,7 +115,7 @@ config FEATURE_SETCONSOLE_LONG_OPTIONS
 config SETFONT
        bool "setfont"
        default y
 config SETFONT
        bool "setfont"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Allows to load console screen map. Useful for i18n.
 
        help
          Allows to load console screen map. Useful for i18n.
 
@@ -137,7 +137,7 @@ config DEFAULT_SETFONT_DIR
 config SETKEYCODES
        bool "setkeycodes"
        default y
 config SETKEYCODES
        bool "setkeycodes"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program loads entries into the kernel's scancode-to-keycode
          map, allowing unusual keyboards to generate usable keycodes.
        help
          This program loads entries into the kernel's scancode-to-keycode
          map, allowing unusual keyboards to generate usable keycodes.
@@ -145,14 +145,14 @@ config SETKEYCODES
 config SETLOGCONS
        bool "setlogcons"
        default y
 config SETLOGCONS
        bool "setlogcons"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This program redirects the output console of kernel messages.
 
 config SHOWKEY
        bool "showkey"
        default y
        help
          This program redirects the output console of kernel messages.
 
 config SHOWKEY
        bool "showkey"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Shows keys pressed.
 
        help
          Shows keys pressed.
 
index 1a044f96c8e9671b521c7f745774f11b9ba14b7c..1843e8b0eb0e47abfced738605f2d6827b5f0ff0 100644 (file)
@@ -591,7 +591,7 @@ config FEATURE_SPLIT_FANCY
 config STAT
        bool "stat"
        default y
 config STAT
        bool "stat"
        default y
-       depends on PLATFORM_LINUX # statfs()
+       select PLATFORM_LINUX # statfs()
        help
          display file or filesystem status.
 
        help
          display file or filesystem status.
 
index 05b4f6eedbfe8d81b2dd57f2e3bdce7de1e5c5b5..db1b693aa62db70e025faae05624a3640863f1d2 100644 (file)
@@ -42,7 +42,8 @@
 //config:config FEATURE_DATE_NANO
 //config:      bool "Support %[num]N nanosecond format specifier"
 //config:      default n
 //config:config FEATURE_DATE_NANO
 //config:      bool "Support %[num]N nanosecond format specifier"
 //config:      default n
-//config:      depends on DATE && PLATFORM_LINUX # syscall(__NR_clock_gettime)
+//config:      depends on DATE  # syscall(__NR_clock_gettime)
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Support %[num]N format specifier. Adds ~250 bytes of code.
 //config:
 //config:      help
 //config:        Support %[num]N format specifier. Adds ~250 bytes of code.
 //config:
index 6043e9b57ba4cabd4f135752931ba8c56fc457a7..743e1e11ffe95a047085446d7b92a2fd3467215b 100644 (file)
@@ -33,7 +33,7 @@ config FSCK
 config LSATTR
        bool "lsattr"
        default y
 config LSATTR
        bool "lsattr"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          lsattr lists the file attributes on a second extended file system.
 
        help
          lsattr lists the file attributes on a second extended file system.
 
index 18bdc5151905bed4b359e7d5de4f488294b194a6..a25af23b43561a8cd86d6c35693ec88ceba7ab8e 100644 (file)
@@ -183,7 +183,7 @@ config FEATURE_SKIP_ROOTFS
 config MONOTONIC_SYSCALL
        bool "Use clock_gettime(CLOCK_MONOTONIC) syscall"
        default n
 config MONOTONIC_SYSCALL
        bool "Use clock_gettime(CLOCK_MONOTONIC) syscall"
        default n
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Use clock_gettime(CLOCK_MONOTONIC) syscall for measuring
          time intervals (time, ping, traceroute etc need this).
        help
          Use clock_gettime(CLOCK_MONOTONIC) syscall for measuring
          time intervals (time, ping, traceroute etc need this).
index b5866bbd7ea7f0dd5c510a4031aff8d1fba43634..61529141dd44eb68cab1c35dfe7b246aa318281e 100644 (file)
@@ -10,7 +10,7 @@ INSERT
 config ADJTIMEX
        bool "adjtimex"
        default y
 config ADJTIMEX
        bool "adjtimex"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Adjtimex reads and optionally sets adjustment parameters for
          the Linux clock adjustment algorithm.
        help
          Adjtimex reads and optionally sets adjustment parameters for
          the Linux clock adjustment algorithm.
@@ -39,7 +39,7 @@ config FEATURE_COMPRESS_BBCONFIG
 config BEEP
        bool "beep"
        default y
 config BEEP
        bool "beep"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The beep applets beeps in a given freq/Hz.
 
        help
          The beep applets beeps in a given freq/Hz.
 
@@ -194,7 +194,7 @@ config FEATURE_DC_LIBM
 config DEVFSD
        bool "devfsd (obsolete)"
        default n
 config DEVFSD
        bool "devfsd (obsolete)"
        default n
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        select FEATURE_SYSLOG
        help
          This is deprecated and should NOT be used anymore.
        select FEATURE_SYSLOG
        help
          This is deprecated and should NOT be used anymore.
@@ -238,7 +238,7 @@ config DEVFSD_VERBOSE
 config FEATURE_DEVFS
        bool "Use devfs names for all devices (obsolete)"
        default n
 config FEATURE_DEVFS
        bool "Use devfs names for all devices (obsolete)"
        default n
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This is obsolete and should NOT be used anymore.
          Use linux >= 2.6 (optionally with hotplug) and mdev instead!
        help
          This is obsolete and should NOT be used anymore.
          Use linux >= 2.6 (optionally with hotplug) and mdev instead!
@@ -258,7 +258,7 @@ config DEVMEM
 config EJECT
        bool "eject"
        default y
 config EJECT
        bool "eject"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Used to eject cdroms. (defaults to /dev/cdrom)
 
        help
          Used to eject cdroms. (defaults to /dev/cdrom)
 
@@ -273,7 +273,7 @@ config FEATURE_EJECT_SCSI
 config FBSPLASH
        bool "fbsplash"
        default y
 config FBSPLASH
        bool "fbsplash"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Shows splash image and progress bar on framebuffer device.
          Can be used during boot phase of an embedded device. ~2kb.
        help
          Shows splash image and progress bar on framebuffer device.
          Can be used during boot phase of an embedded device. ~2kb.
@@ -323,7 +323,7 @@ config FLASH_ERASEALL
 config IONICE
        bool "ionice"
        default y
 config IONICE
        bool "ionice"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Set/set program io scheduling class and priority
          Requires kernel >= 2.6.13
        help
          Set/set program io scheduling class and priority
          Requires kernel >= 2.6.13
@@ -429,7 +429,7 @@ config FEATURE_LESS_LINENUMS
 config HDPARM
        bool "hdparm"
        default y
 config HDPARM
        bool "hdparm"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Get/Set hard drive parameters. Primarily intended for ATA
          drives. Adds about 13k (or around 30k if you enable the
        help
          Get/Set hard drive parameters. Primarily intended for ATA
          drives. Adds about 13k (or around 30k if you enable the
@@ -546,7 +546,7 @@ config MT
 config RAIDAUTORUN
        bool "raidautorun"
        default y
 config RAIDAUTORUN
        bool "raidautorun"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          raidautorun tells the kernel md driver to
          search and start RAID arrays.
        help
          raidautorun tells the kernel md driver to
          search and start RAID arrays.
@@ -554,7 +554,8 @@ config RAIDAUTORUN
 config READAHEAD
        bool "readahead"
        default y
 config READAHEAD
        bool "readahead"
        default y
-       depends on LFS && PLATFORM_LINUX
+       depends on LFS
+       select 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.
        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.
@@ -571,7 +572,7 @@ config READAHEAD
 config RFKILL
        bool "rfkill"
        default n  # doesn't build on Ubuntu 9.04
 config RFKILL
        bool "rfkill"
        default n  # doesn't build on Ubuntu 9.04
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Enable/disable wireless devices.
 
        help
          Enable/disable wireless devices.
 
@@ -593,7 +594,7 @@ config RUNLEVEL
 config RX
        bool "rx"
        default y
 config RX
        bool "rx"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Receive files using the Xmodem protocol.
 
        help
          Receive files using the Xmodem protocol.
 
@@ -666,7 +667,7 @@ config WALL
 config WATCHDOG
        bool "watchdog"
        default y
 config WATCHDOG
        bool "watchdog"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The watchdog utility is used with hardware or software watchdog
          device drivers. It opens the specified watchdog device special file
        help
          The watchdog utility is used with hardware or software watchdog
          device drivers. It opens the specified watchdog device special file
index 721eb6d59fd23109e92557ce4ae92e3148aa910f..1fdb2fb386330c0f6bfd2393d999d61dcece24b7 100644 (file)
@@ -17,7 +17,7 @@
 //config:config CONSPY
 //config:      bool "conspy"
 //config:      default n
 //config:config CONSPY
 //config:      bool "conspy"
 //config:      default n
-//config:      depends on PLATFORM_LINUX
+//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
 //config:      help
 //config:        A text-mode VNC like program for Linux virtual terminals.
 //config:        example:  conspy NUM      shared access to console num
index c5e2fb841face3dc6d219ae7040f44d7e7603b8d..c7fbe7d9c1c0411dee3f1c95e27a45ed59861856 100644 (file)
 //config:config NANDWRITE
 //config:      bool "nandwrite"
 //config:      default n
 //config:config NANDWRITE
 //config:      bool "nandwrite"
 //config:      default n
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Write to the specified MTD device, with bad blocks awareness
 //config:
 //config:config NANDDUMP
 //config:      bool "nanddump"
 //config:      default n
 //config:      help
 //config:        Write to the specified MTD device, with bad blocks awareness
 //config:
 //config:config NANDDUMP
 //config:      bool "nanddump"
 //config:      default n
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Dump the content of raw NAND chip
 
 //config:      help
 //config:        Dump the content of raw NAND chip
 
index fef9250eed30adf8a3878363edf653a00fdef531..9007f8c3f39124c75e1b0dab68f0f0493e64ef95 100644 (file)
@@ -6,35 +6,35 @@
 //config:config UBIATTACH
 //config:      bool "ubiattach"
 //config:      default y
 //config:config UBIATTACH
 //config:      bool "ubiattach"
 //config:      default y
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Attach MTD device to an UBI device.
 //config:
 //config:config UBIDETACH
 //config:      bool "ubidetach"
 //config:      default y
 //config:      help
 //config:        Attach MTD device to an UBI device.
 //config:
 //config:config UBIDETACH
 //config:      bool "ubidetach"
 //config:      default y
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Detach MTD device from an UBI device.
 //config:
 //config:config UBIMKVOL
 //config:      bool "ubimkvol"
 //config:      default y
 //config:      help
 //config:        Detach MTD device from an UBI device.
 //config:
 //config:config UBIMKVOL
 //config:      bool "ubimkvol"
 //config:      default y
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Create a UBI volume.
 //config:
 //config:config UBIRMVOL
 //config:      bool "ubirmvol"
 //config:      default y
 //config:      help
 //config:        Create a UBI volume.
 //config:
 //config:config UBIRMVOL
 //config:      bool "ubirmvol"
 //config:      default y
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Delete a UBI volume.
 //config:
 //config:config UBIRSVOL
 //config:      bool "ubirsvol"
 //config:      default y
 //config:      help
 //config:        Delete a UBI volume.
 //config:
 //config:config UBIRSVOL
 //config:      bool "ubirsvol"
 //config:      default y
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        Resize a UBI volume.
 
 //config:      help
 //config:        Resize a UBI volume.
 
index 4191d29f2ece2642e765e3723f232624785e12dd..449ac65afb792c74f53867280d66d19dc0c7912d 100644 (file)
@@ -4,13 +4,13 @@
 #
 
 menu "Linux Module Utilities"
 #
 
 menu "Linux Module Utilities"
-depends on PLATFORM_LINUX
 
 INSERT
 
 config MODPROBE_SMALL
        bool "Simplified modutils"
        default y
 
 INSERT
 
 config MODPROBE_SMALL
        bool "Simplified modutils"
        default y
+       select PLATFORM_LINUX
        help
          Simplified modutils.
 
        help
          Simplified modutils.
 
@@ -45,6 +45,7 @@ config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE
        bool "Accept module options on modprobe command line"
        default y
        depends on MODPROBE_SMALL
        bool "Accept module options on modprobe command line"
        default y
        depends on MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          Allow insmod and modprobe take module options from command line.
 
        help
          Allow insmod and modprobe take module options from command line.
 
@@ -59,6 +60,7 @@ config INSMOD
        bool "insmod"
        default n
        depends on !MODPROBE_SMALL
        bool "insmod"
        default n
        depends on !MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          insmod is used to load specified modules in the running kernel.
 
        help
          insmod is used to load specified modules in the running kernel.
 
@@ -66,6 +68,7 @@ config RMMOD
        bool "rmmod"
        default n
        depends on !MODPROBE_SMALL
        bool "rmmod"
        default n
        depends on !MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          rmmod is used to unload specified modules from the kernel.
 
        help
          rmmod is used to unload specified modules from the kernel.
 
@@ -73,6 +76,7 @@ config LSMOD
        bool "lsmod"
        default n
        depends on !MODPROBE_SMALL
        bool "lsmod"
        default n
        depends on !MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          lsmod is used to display a list of loaded modules.
 
        help
          lsmod is used to display a list of loaded modules.
 
@@ -80,6 +84,7 @@ config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
        bool "Pretty output"
        default n
        depends on LSMOD
        bool "Pretty output"
        default n
        depends on LSMOD
+       select PLATFORM_LINUX
        help
          This option makes output format of lsmod adjusted to
          the format of module-init-tools for Linux kernel 2.6.
        help
          This option makes output format of lsmod adjusted to
          the format of module-init-tools for Linux kernel 2.6.
@@ -89,6 +94,7 @@ config MODPROBE
        bool "modprobe"
        default n
        depends on !MODPROBE_SMALL
        bool "modprobe"
        default n
        depends on !MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          Handle the loading of modules, and their dependencies on a high
          level.
        help
          Handle the loading of modules, and their dependencies on a high
          level.
@@ -97,6 +103,7 @@ config FEATURE_MODPROBE_BLACKLIST
        bool "Blacklist support"
        default n
        depends on MODPROBE
        bool "Blacklist support"
        default n
        depends on MODPROBE
+       select PLATFORM_LINUX
        help
          Say 'y' here to enable support for the 'blacklist' command in
          modprobe.conf. This prevents the alias resolver to resolve
        help
          Say 'y' here to enable support for the 'blacklist' command in
          modprobe.conf. This prevents the alias resolver to resolve
@@ -108,6 +115,7 @@ config DEPMOD
        bool "depmod"
        default n
        depends on !MODPROBE_SMALL
        bool "depmod"
        default n
        depends on !MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          depmod generates modules.dep (and potentially modules.alias
          and modules.symbols) that contain dependency information
        help
          depmod generates modules.dep (and potentially modules.alias
          and modules.symbols) that contain dependency information
@@ -119,6 +127,7 @@ config FEATURE_2_4_MODULES
        bool "Support version 2.2/2.4 Linux kernels"
        default n
        depends on INSMOD || RMMOD || LSMOD
        bool "Support version 2.2/2.4 Linux kernels"
        default n
        depends on INSMOD || RMMOD || LSMOD
+       select PLATFORM_LINUX
        help
          Support module loading for 2.2.x and 2.4.x Linux kernels.
          This increases size considerably. Say N unless you plan
        help
          Support module loading for 2.2.x and 2.4.x Linux kernels.
          This increases size considerably. Say N unless you plan
@@ -128,6 +137,7 @@ config FEATURE_INSMOD_TRY_MMAP
        bool "Try to load module from a mmap'ed area"
        default n
        depends on INSMOD || MODPROBE_SMALL
        bool "Try to load module from a mmap'ed area"
        default n
        depends on INSMOD || MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          This option causes module loading code to try to mmap
          module first. If it does not work (for example,
        help
          This option causes module loading code to try to mmap
          module first. If it does not work (for example,
@@ -144,6 +154,7 @@ config FEATURE_INSMOD_VERSION_CHECKING
        bool "Enable module version checking"
        default n
        depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
        bool "Enable module version checking"
        default n
        depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
+       select PLATFORM_LINUX
        help
          Support checking of versions for modules. This is used to
          ensure that the kernel and module are made for each other.
        help
          Support checking of versions for modules. This is used to
          ensure that the kernel and module are made for each other.
@@ -152,6 +163,7 @@ config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
        bool "Add module symbols to kernel symbol table"
        default n
        depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
        bool "Add module symbols to kernel symbol table"
        default n
        depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
+       select PLATFORM_LINUX
        help
          By adding module symbols to the kernel symbol table, Oops messages
          occuring within kernel modules can be properly debugged. By enabling
        help
          By adding module symbols to the kernel symbol table, Oops messages
          occuring within kernel modules can be properly debugged. By enabling
@@ -163,6 +175,7 @@ config FEATURE_INSMOD_LOADINKMEM
        bool "In kernel memory optimization (uClinux only)"
        default n
        depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
        bool "In kernel memory optimization (uClinux only)"
        default n
        depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
+       select PLATFORM_LINUX
        help
          This is a special uClinux only memory optimization that lets insmod
          load the specified kernel module directly into kernel space, reducing
        help
          This is a special uClinux only memory optimization that lets insmod
          load the specified kernel module directly into kernel space, reducing
@@ -173,6 +186,7 @@ config FEATURE_INSMOD_LOAD_MAP
        bool "Enable insmod load map (-m) option"
        default n
        depends on FEATURE_2_4_MODULES && INSMOD
        bool "Enable insmod load map (-m) option"
        default n
        depends on FEATURE_2_4_MODULES && INSMOD
+       select PLATFORM_LINUX
        help
          Enabling this, one would be able to get a load map
          output on stdout. This makes kernel module debugging
        help
          Enabling this, one would be able to get a load map
          output on stdout. This makes kernel module debugging
@@ -184,6 +198,7 @@ config FEATURE_INSMOD_LOAD_MAP_FULL
        bool "Symbols in load map"
        default y
        depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
        bool "Symbols in load map"
        default y
        depends on FEATURE_INSMOD_LOAD_MAP && !MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          Without this option, -m will only output section
          load map. With this option, -m will also output
        help
          Without this option, -m will only output section
          load map. With this option, -m will also output
@@ -193,6 +208,7 @@ config FEATURE_CHECK_TAINTED_MODULE
        bool "Support tainted module checking with new kernels"
        default y
        depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
        bool "Support tainted module checking with new kernels"
        default y
        depends on (LSMOD || FEATURE_2_4_MODULES) && !MODPROBE_SMALL
+       select PLATFORM_LINUX
        help
          Support checking for tainted modules. These are usually binary
          only modules that will make the linux-kernel list ignore your
        help
          Support checking for tainted modules. These are usually binary
          only modules that will make the linux-kernel list ignore your
@@ -203,6 +219,7 @@ config FEATURE_MODUTILS_ALIAS
        bool "Support for module.aliases file"
        default y
        depends on DEPMOD || MODPROBE
        bool "Support for module.aliases file"
        default y
        depends on DEPMOD || MODPROBE
+       select PLATFORM_LINUX
        help
          Generate and parse modules.alias containing aliases for bus
          identifiers:
        help
          Generate and parse modules.alias containing aliases for bus
          identifiers:
@@ -219,6 +236,7 @@ config FEATURE_MODUTILS_SYMBOLS
        bool "Support for module.symbols file"
        default y
        depends on DEPMOD || MODPROBE
        bool "Support for module.symbols file"
        default y
        depends on DEPMOD || MODPROBE
+       select PLATFORM_LINUX
        help
          Generate and parse modules.symbols containing aliases for
          symbol_request() kernel calls, such as:
        help
          Generate and parse modules.symbols containing aliases for
          symbol_request() kernel calls, such as:
index 274fcae3af67ea4a347877645a5d6ffff7070237..06930f4a60dc7e521de2dbf63d3c80bdd52f9b30 100644 (file)
@@ -51,21 +51,21 @@ config VERBOSE_RESOLUTION_ERRORS
 config ARP
        bool "arp"
        default y
 config ARP
        bool "arp"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Manipulate the system ARP cache.
 
 config ARPING
        bool "arping"
        default y
        help
          Manipulate the system ARP cache.
 
 config ARPING
        bool "arping"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Ping hosts by ARP packets.
 
 config BRCTL
        bool "brctl"
        default y
        help
          Ping hosts by ARP packets.
 
 config BRCTL
        bool "brctl"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Manage ethernet bridges.
          Supports addbr/delbr and addif/delif.
        help
          Manage ethernet bridges.
          Supports addbr/delbr and addif/delif.
@@ -98,7 +98,7 @@ config DNSD
 config ETHER_WAKE
        bool "ether-wake"
        default y
 config ETHER_WAKE
        bool "ether-wake"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Send a magic packet to wake up sleeping machines.
 
        help
          Send a magic packet to wake up sleeping machines.
 
@@ -281,7 +281,7 @@ config FEATURE_HTTPD_GZIP
 config IFCONFIG
        bool "ifconfig"
        default y
 config IFCONFIG
        bool "ifconfig"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Ifconfig is used to configure the kernel-resident network interfaces.
 
        help
          Ifconfig is used to configure the kernel-resident network interfaces.
 
@@ -329,7 +329,7 @@ config FEATURE_IFCONFIG_BROADCAST_PLUS
 config IFENSLAVE
        bool "ifenslave"
        default y
 config IFENSLAVE
        bool "ifenslave"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Userspace application to bind several interfaces
          to a logical interface (use with kernel bonding driver).
        help
          Userspace application to bind several interfaces
          to a logical interface (use with kernel bonding driver).
@@ -337,7 +337,7 @@ config IFENSLAVE
 config IFPLUGD
        bool "ifplugd"
        default y
 config IFPLUGD
        bool "ifplugd"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Network interface plug detection daemon.
 
        help
          Network interface plug detection daemon.
 
@@ -379,7 +379,8 @@ config FEATURE_IFUPDOWN_IP
 config FEATURE_IFUPDOWN_IP_BUILTIN
        bool "Use busybox ip applet"
        default y
 config FEATURE_IFUPDOWN_IP_BUILTIN
        bool "Use busybox ip applet"
        default y
-       depends on FEATURE_IFUPDOWN_IP && PLATFORM_LINUX
+       depends on FEATURE_IFUPDOWN_IP
+       select PLATFORM_LINUX
        select IP
        select FEATURE_IP_ADDRESS
        select FEATURE_IP_LINK
        select IP
        select FEATURE_IP_ADDRESS
        select FEATURE_IP_LINK
@@ -498,7 +499,7 @@ config FEATURE_INETD_RPC
 config IP
        bool "ip"
        default y
 config IP
        bool "ip"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The "ip" applet is a TCP/IP interface configuration and routing
          utility. You generally don't need "ip" to use busybox with
        help
          The "ip" applet is a TCP/IP interface configuration and routing
          utility. You generally don't need "ip" to use busybox with
@@ -614,7 +615,7 @@ config FEATURE_IPCALC_LONG_OPTIONS
 config NAMEIF
        bool "nameif"
        default y
 config NAMEIF
        bool "nameif"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        select FEATURE_SYSLOG
        help
          nameif is used to rename network interface by its MAC address.
        select FEATURE_SYSLOG
        help
          nameif is used to rename network interface by its MAC address.
@@ -643,7 +644,7 @@ config FEATURE_NAMEIF_EXTENDED
 config NETSTAT
        bool "netstat"
        default y
 config NETSTAT
        bool "netstat"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          netstat prints information about the Linux networking subsystem.
 
        help
          netstat prints information about the Linux networking subsystem.
 
@@ -672,7 +673,7 @@ config NSLOOKUP
 config NTPD
        bool "ntpd"
        default y
 config NTPD
        bool "ntpd"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The NTP client/server daemon.
 
        help
          The NTP client/server daemon.
 
@@ -693,14 +694,14 @@ config PSCAN
 config ROUTE
        bool "route"
        default y
 config ROUTE
        bool "route"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Route displays or manipulates the kernel's IP routing tables.
 
 config SLATTACH
        bool "slattach"
        default y
        help
          Route displays or manipulates the kernel's IP routing tables.
 
 config SLATTACH
        bool "slattach"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          slattach is a small utility to attach network interfaces to serial
          lines.
        help
          slattach is a small utility to attach network interfaces to serial
          lines.
@@ -887,7 +888,7 @@ config TFTP_DEBUG
 config TRACEROUTE
        bool "traceroute"
        default y
 config TRACEROUTE
        bool "traceroute"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Utility to trace the route of IP packets.
 
        help
          Utility to trace the route of IP packets.
 
@@ -924,7 +925,7 @@ config FEATURE_TRACEROUTE_USE_ICMP
 config TUNCTL
        bool "tunctl"
        default y
 config TUNCTL
        bool "tunctl"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          tunctl creates or deletes tun devices.
 
        help
          tunctl creates or deletes tun devices.
 
@@ -957,7 +958,7 @@ config UDPSVD
 config VCONFIG
        bool "vconfig"
        default y
 config VCONFIG
        bool "vconfig"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Creates, removes, and configures VLAN interfaces
 
        help
          Creates, removes, and configures VLAN interfaces
 
@@ -1004,7 +1005,7 @@ config FEATURE_WGET_TIMEOUT
 config ZCIP
        bool "zcip"
        default y
 config ZCIP
        bool "zcip"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        select FEATURE_SYSLOG
        help
          ZCIP provides ZeroConf IPv4 address selection, according to RFC 3927.
        select FEATURE_SYSLOG
        help
          ZCIP provides ZeroConf IPv4 address selection, according to RFC 3927.
index c2ff42e2c3549dbc93fadb3ce4515d8a638750d9..7a9c2d1f03ffbacb8a70a6175316771807323885 100644 (file)
@@ -32,7 +32,7 @@
 //config:config PING
 //config:      bool "ping"
 //config:      default y
 //config:config PING
 //config:      bool "ping"
 //config:      default y
-//config:      depends on PLATFORM_LINUX
+//config:      select PLATFORM_LINUX
 //config:      help
 //config:        ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to
 //config:        elicit an ICMP ECHO_RESPONSE from a host or gateway.
 //config:      help
 //config:        ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to
 //config:        elicit an ICMP ECHO_RESPONSE from a host or gateway.
index 750a53a3288cdd2beda79728789f0ecea88656db..9cd8cbbae17a577d8aa5fdb297e15ea528dbaacb 100644 (file)
@@ -8,7 +8,7 @@ INSERT
 config UDHCPD
        bool "udhcp server (udhcpd)"
        default y
 config UDHCPD
        bool "udhcp server (udhcpd)"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          udhcpd is a DHCP server geared primarily toward embedded systems,
          while striving to be fully functional and RFC compliant.
        help
          udhcpd is a DHCP server geared primarily toward embedded systems,
          while striving to be fully functional and RFC compliant.
@@ -66,7 +66,7 @@ config DHCPD_LEASES_FILE
 config UDHCPC
        bool "udhcp client (udhcpc)"
        default y
 config UDHCPC
        bool "udhcp client (udhcpc)"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          udhcpc is a DHCP client geared primarily toward embedded systems,
          while striving to be fully functional and RFC compliant.
        help
          udhcpc is a DHCP client geared primarily toward embedded systems,
          while striving to be fully functional and RFC compliant.
index cf664eeb2a4a7ead822f3c5d01fcdc2b9c809cca..3e7df0b81cfe71f0371c82aaa72581bad9ee57d9 100644 (file)
@@ -10,7 +10,7 @@ INSERT
 config FREE
        bool "free"
        default y
 config FREE
        bool "free"
        default y
-       depends on PLATFORM_LINUX #sysinfo()
+       select PLATFORM_LINUX #sysinfo()
        help
          free displays the total amount of free and used physical and swap
          memory in the system, as well as the buffers used by the kernel.
        help
          free displays the total amount of free and used physical and swap
          memory in the system, as well as the buffers used by the kernel.
@@ -99,7 +99,8 @@ config FEATURE_PS_WIDE
 config FEATURE_PS_TIME
        bool "Enable time and elapsed time output"
        default y
 config FEATURE_PS_TIME
        bool "Enable time and elapsed time output"
        default y
-       depends on PS && DESKTOP && PLATFORM_LINUX #sysinfo()
+       depends on PS && DESKTOP
+       select PLATFORM_LINUX
        help
          Support -o time and -o etime output specifiers.
 
        help
          Support -o time and -o etime output specifiers.
 
@@ -196,7 +197,7 @@ config FEATURE_SHOW_THREADS
 config UPTIME
        bool "uptime"
        default y
 config UPTIME
        bool "uptime"
        default y
-       depends on PLATFORM_LINUX #sysinfo()
+       select PLATFORM_LINUX #sysinfo()
        help
          uptime gives a one line display of the current time, how long
          the system has been running, how many users are currently logged
        help
          uptime gives a one line display of the current time, how long
          the system has been running, how many users are currently logged
index 1e59872754164154368dd8d4cd46b5968378b88b..d62dc5f5c497d21b932f858530b7bbf2a0f6e554 100644 (file)
@@ -119,7 +119,8 @@ config KLOGD
 config FEATURE_KLOGD_KLOGCTL
        bool "Use the klogctl() interface"
        default y
 config FEATURE_KLOGD_KLOGCTL
        bool "Use the klogctl() interface"
        default y
-       depends on KLOGD && PLATFORM_LINUX
+       depends on KLOGD
+       select PLATFORM_LINUX
        help
          The klogd applet supports two interfaces for reading
          kernel messages. Linux provides the klogctl() interface
        help
          The klogd applet supports two interfaces for reading
          kernel messages. Linux provides the klogctl() interface
index 941a47f90ea2e8aed4bff16f94097ebea0dbb92c..90606bcae92fd6cd96fce2a949f37c984d4191e2 100644 (file)
@@ -10,7 +10,7 @@ INSERT
 config ACPID
        bool "acpid"
        default y
 config ACPID
        bool "acpid"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          acpid listens to ACPI events coming either in textual form from
          /proc/acpi/event (though it is marked deprecated it is still widely
        help
          acpid listens to ACPI events coming either in textual form from
          /proc/acpi/event (though it is marked deprecated it is still widely
@@ -33,7 +33,7 @@ config FEATURE_ACPID_COMPAT
 config BLKID
        bool "blkid"
        default y
 config BLKID
        bool "blkid"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        select VOLUMEID
        help
          Lists labels and UUIDs of all filesystems.
        select VOLUMEID
        help
          Lists labels and UUIDs of all filesystems.
@@ -50,7 +50,7 @@ config FEATURE_BLKID_TYPE
 config DMESG
        bool "dmesg"
        default y
 config DMESG
        bool "dmesg"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          dmesg is used to examine or control the kernel ring buffer. When the
          Linux kernel prints messages to the system log, they are stored in
        help
          dmesg is used to examine or control the kernel ring buffer. When the
          Linux kernel prints messages to the system log, they are stored in
@@ -84,7 +84,7 @@ config FEATURE_DMESG_PRETTY
 config FBSET
        bool "fbset"
        default y
 config FBSET
        bool "fbset"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          fbset is used to show or change the settings of a Linux frame buffer
          device. The frame buffer device provides a simple and unique
        help
          fbset is used to show or change the settings of a Linux frame buffer
          device. The frame buffer device provides a simple and unique
@@ -113,7 +113,7 @@ config FEATURE_FBSET_READMODE
 config FDFLUSH
        bool "fdflush"
        default y
 config FDFLUSH
        bool "fdflush"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          fdflush is only needed when changing media on slightly-broken
          removable media drives. It is used to make Linux believe that a
        help
          fdflush is only needed when changing media on slightly-broken
          removable media drives. It is used to make Linux believe that a
@@ -126,14 +126,14 @@ config FDFLUSH
 config FDFORMAT
        bool "fdformat"
        default y
 config FDFORMAT
        bool "fdformat"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          fdformat is used to low-level format a floppy disk.
 
 config FDISK
        bool "fdisk"
        default y
        help
          fdformat is used to low-level format a floppy disk.
 
 config FDISK
        bool "fdisk"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The fdisk utility is used to divide hard disks into one or more
          logical disks, which are generally called partitions. This utility
        help
          The fdisk utility is used to divide hard disks into one or more
          logical disks, which are generally called partitions. This utility
@@ -209,7 +209,7 @@ config FEATURE_FDISK_ADVANCED
 config FINDFS
        bool "findfs"
        default y
 config FINDFS
        bool "findfs"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        select VOLUMEID
        help
          Prints the name of a filesystem with given label or UUID.
        select VOLUMEID
        help
          Prints the name of a filesystem with given label or UUID.
@@ -225,7 +225,7 @@ config FLOCK
 config FREERAMDISK
        bool "freeramdisk"
        default y
 config FREERAMDISK
        bool "freeramdisk"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Linux allows you to create ramdisks. This utility allows you to
          delete them and completely free all memory that was used for the
        help
          Linux allows you to create ramdisks. This utility allows you to
          delete them and completely free all memory that was used for the
@@ -248,14 +248,14 @@ config FSCK_MINIX
 config MKFS_EXT2
        bool "mkfs_ext2"
        default y
 config MKFS_EXT2
        bool "mkfs_ext2"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Utility to create EXT2 filesystems.
 
 config MKFS_MINIX
        bool "mkfs_minix"
        default y
        help
          Utility to create EXT2 filesystems.
 
 config MKFS_MINIX
        bool "mkfs_minix"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The minix filesystem is a nice, small, compact, read-write filesystem
          with little overhead. If you wish to be able to create minix
        help
          The minix filesystem is a nice, small, compact, read-write filesystem
          with little overhead. If you wish to be able to create minix
@@ -273,7 +273,7 @@ config FEATURE_MINIX2
 config MKFS_REISER
        bool "mkfs_reiser"
        default n
 config MKFS_REISER
        bool "mkfs_reiser"
        default n
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Utility to create ReiserFS filesystems.
          Note: this applet needs a lot of testing and polishing.
        help
          Utility to create ReiserFS filesystems.
          Note: this applet needs a lot of testing and polishing.
@@ -281,7 +281,7 @@ config MKFS_REISER
 config MKFS_VFAT
        bool "mkfs_vfat"
        default y
 config MKFS_VFAT
        bool "mkfs_vfat"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Utility to create FAT32 filesystems.
 
        help
          Utility to create FAT32 filesystems.
 
@@ -330,7 +330,7 @@ config HD
 config HWCLOCK
        bool "hwclock"
        default y
 config HWCLOCK
        bool "hwclock"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The hwclock utility is used to read and set the hardware clock
          on a system. This is primarily used to set the current time on
        help
          The hwclock utility is used to read and set the hardware clock
          on a system. This is primarily used to set the current time on
@@ -369,7 +369,7 @@ config IPCRM
 config IPCS
        bool "ipcs"
        default y
 config IPCS
        bool "ipcs"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The ipcs utility is used to provide information on the currently
          allocated System V interprocess (IPC) objects in the system.
        help
          The ipcs utility is used to provide information on the currently
          allocated System V interprocess (IPC) objects in the system.
@@ -377,7 +377,7 @@ config IPCS
 config LOSETUP
        bool "losetup"
        default y
 config LOSETUP
        bool "losetup"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          losetup is used to associate or detach a loop device with a regular
          file or block device, and to query the status of a loop device. This
        help
          losetup is used to associate or detach a loop device with a regular
          file or block device, and to query the status of a loop device. This
@@ -386,7 +386,7 @@ config LOSETUP
 config LSPCI
        bool "lspci"
        default y
 config LSPCI
        bool "lspci"
        default y
-       #depends on PLATFORM_LINUX
+       #select PLATFORM_LINUX
        help
          lspci is a utility for displaying information about PCI buses in the
          system and devices connected to them.
        help
          lspci is a utility for displaying information about PCI buses in the
          system and devices connected to them.
@@ -396,7 +396,7 @@ config LSPCI
 config LSUSB
        bool "lsusb"
        default y
 config LSUSB
        bool "lsusb"
        default y
-       #depends on PLATFORM_LINUX
+       #select PLATFORM_LINUX
        help
          lsusb is a utility for displaying information about USB buses in the
          system and devices connected to them.
        help
          lsusb is a utility for displaying information about USB buses in the
          system and devices connected to them.
@@ -406,7 +406,7 @@ config LSUSB
 config MDEV
        bool "mdev"
        default y
 config MDEV
        bool "mdev"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          mdev is a mini-udev implementation for dynamically creating device
          nodes in the /dev directory.
        help
          mdev is a mini-udev implementation for dynamically creating device
          nodes in the /dev directory.
@@ -494,7 +494,7 @@ config MORE
 config MOUNT
        bool "mount"
        default y
 config MOUNT
        bool "mount"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          All files and filesystems in Unix are arranged into one big directory
          tree. The 'mount' utility is used to graft a filesystem onto a
        help
          All files and filesystems in Unix are arranged into one big directory
          tree. The 'mount' utility is used to graft a filesystem onto a
@@ -577,7 +577,7 @@ config FEATURE_MOUNT_FSTAB
 config PIVOT_ROOT
        bool "pivot_root"
        default y
 config PIVOT_ROOT
        bool "pivot_root"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The pivot_root utility swaps the mount points for the root filesystem
          with some other mounted filesystem. This allows you to do all sorts
        help
          The pivot_root utility swaps the mount points for the root filesystem
          with some other mounted filesystem. This allows you to do all sorts
@@ -605,14 +605,14 @@ config RDEV
 config READPROFILE
        bool "readprofile"
        default y
 config READPROFILE
        bool "readprofile"
        default y
-       #depends on PLATFORM_LINUX
+       #select PLATFORM_LINUX
        help
          This allows you to parse /proc/profile for basic profiling.
 
 config RTCWAKE
        bool "rtcwake"
        default y
        help
          This allows you to parse /proc/profile for basic profiling.
 
 config RTCWAKE
        bool "rtcwake"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          Enter a system sleep state until specified wakeup time.
 
        help
          Enter a system sleep state until specified wakeup time.
 
@@ -632,7 +632,7 @@ config SCRIPTREPLAY
 config SETARCH
        bool "setarch"
        default y
 config SETARCH
        bool "setarch"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The linux32 utility is used to create a 32bit environment for the
          specified program (usually a shell). It only makes sense to have
        help
          The linux32 utility is used to create a 32bit environment for the
          specified program (usually a shell). It only makes sense to have
@@ -642,7 +642,7 @@ config SETARCH
 config SWAPONOFF
        bool "swaponoff"
        default y
 config SWAPONOFF
        bool "swaponoff"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          This option enables both the 'swapon' and the 'swapoff' utilities.
          Once you have created some swap space using 'mkswap', you also need
        help
          This option enables both the 'swapon' and the 'swapoff' utilities.
          Once you have created some swap space using 'mkswap', you also need
@@ -661,7 +661,7 @@ config FEATURE_SWAPON_PRI
 config SWITCH_ROOT
        bool "switch_root"
        default y
 config SWITCH_ROOT
        bool "switch_root"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          The switch_root utility is used from initramfs to select a new
          root device. Under initramfs, you have to use this instead of
        help
          The switch_root utility is used from initramfs to select a new
          root device. Under initramfs, you have to use this instead of
@@ -681,7 +681,7 @@ config SWITCH_ROOT
 config UMOUNT
        bool "umount"
        default y
 config UMOUNT
        bool "umount"
        default y
-       depends on PLATFORM_LINUX
+       select PLATFORM_LINUX
        help
          When you want to remove a mounted filesystem from its current mount
          point, for example when you are shutting down the system, the
        help
          When you want to remove a mounted filesystem from its current mount
          point, for example when you are shutting down the system, the