aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.flags2
-rw-r--r--console-tools/loadfont.c1
-rw-r--r--console-tools/openvt.c1
-rw-r--r--coreutils/dd.c20
-rw-r--r--klibc-utils/run-init.c1
-rw-r--r--miscutils/adjtimex.c1
-rw-r--r--miscutils/i2c_tools.c5
-rw-r--r--miscutils/partprobe.c1
-rw-r--r--miscutils/ubirename.c1
-rw-r--r--miscutils/watchdog.c1
-rw-r--r--modutils/Config.src1
-rw-r--r--modutils/depmod.c1
-rw-r--r--modutils/insmod.c1
-rw-r--r--modutils/lsmod.c1
-rw-r--r--modutils/modinfo.c1
-rw-r--r--modutils/modprobe.c1
-rw-r--r--modutils/rmmod.c1
-rw-r--r--networking/arp.c1
-rw-r--r--networking/arping.c1
-rw-r--r--networking/brctl.c1
-rw-r--r--networking/ifconfig.c1
-rw-r--r--networking/ifplugd.c1
-rw-r--r--networking/ip.c6
-rw-r--r--networking/nameif.c1
-rw-r--r--networking/route.c1
-rw-r--r--networking/tc.c1
-rw-r--r--networking/traceroute.c2
-rw-r--r--networking/tunctl.c1
-rw-r--r--networking/udhcp/Config.src3
-rw-r--r--procps/free.c1
-rw-r--r--procps/uptime.c1
-rw-r--r--sysklogd/klogd.c1
-rw-r--r--util-linux/acpid.c1
-rw-r--r--util-linux/blkdiscard.c1
-rw-r--r--util-linux/blkid.c1
-rw-r--r--util-linux/dmesg.c1
-rw-r--r--util-linux/fdisk.c1
-rw-r--r--util-linux/findfs.c1
-rw-r--r--util-linux/freeramdisk.c2
-rw-r--r--util-linux/fsfreeze.c1
-rw-r--r--util-linux/fstrim.c1
-rw-r--r--util-linux/hwclock.c1
-rw-r--r--util-linux/ionice.c1
-rw-r--r--util-linux/losetup.c1
-rw-r--r--util-linux/mdev.c1
-rw-r--r--util-linux/mkfs_ext2.c1
-rw-r--r--util-linux/mkfs_vfat.c1
-rw-r--r--util-linux/mount.c1
-rw-r--r--util-linux/nsenter.c1
-rw-r--r--util-linux/pivot_root.c1
-rw-r--r--util-linux/setarch.c3
-rw-r--r--util-linux/setpriv.c1
-rw-r--r--util-linux/swaponoff.c2
-rw-r--r--util-linux/switch_root.c1
-rw-r--r--util-linux/uevent.c1
-rw-r--r--util-linux/unshare.c1
56 files changed, 89 insertions, 3 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 84cb00a75..50137a78e 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -184,7 +184,7 @@ LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%
184endif 184endif
185 185
186ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y) 186ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
187ifneq (,$(findstring linux,$(shell $(CC) $(CFLAGS) -dumpmachine))) 187ifneq (,$(findstring gnu,$(shell $(CC) $(CFLAGS) -dumpmachine)))
188LDLIBS += resolv 188LDLIBS += resolv
189endif 189endif
190endif 190endif
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 81a0e6aa8..3f36cabe0 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -12,6 +12,7 @@
12//config:config LOADFONT 12//config:config LOADFONT
13//config: bool "loadfont (5.2 kb)" 13//config: bool "loadfont (5.2 kb)"
14//config: default y 14//config: default y
15//config: select PLATFORM_LINUX
15//config: help 16//config: help
16//config: This program loads a console font from standard input. 17//config: This program loads a console font from standard input.
17//config: 18//config:
diff --git a/console-tools/openvt.c b/console-tools/openvt.c
index db2f073b2..9e6cffecc 100644
--- a/console-tools/openvt.c
+++ b/console-tools/openvt.c
@@ -10,6 +10,7 @@
10//config:config OPENVT 10//config:config OPENVT
11//config: bool "openvt (7.2 kb)" 11//config: bool "openvt (7.2 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: This program is used to start a command on an unused 15//config: This program is used to start a command on an unused
15//config: virtual terminal. 16//config: virtual terminal.
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 06c1b7b9c..3e034eb1e 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -200,6 +200,7 @@ static void dd_output_status(int UNUSED_PARAM cur_signal)
200} 200}
201 201
202#if ENABLE_FEATURE_DD_IBS_OBS 202#if ENABLE_FEATURE_DD_IBS_OBS
203# ifdef O_DIRECT
203static int clear_O_DIRECT(int fd) 204static int clear_O_DIRECT(int fd)
204{ 205{
205 if (errno == EINVAL) { 206 if (errno == EINVAL) {
@@ -211,6 +212,7 @@ static int clear_O_DIRECT(int fd)
211 } 212 }
212 return 0; 213 return 0;
213} 214}
215# endif
214#endif 216#endif
215 217
216static ssize_t dd_read(void *ibuf, size_t ibs) 218static ssize_t dd_read(void *ibuf, size_t ibs)
@@ -225,8 +227,10 @@ static ssize_t dd_read(void *ibuf, size_t ibs)
225#endif 227#endif
226 n = safe_read(ifd, ibuf, ibs); 228 n = safe_read(ifd, ibuf, ibs);
227#if ENABLE_FEATURE_DD_IBS_OBS 229#if ENABLE_FEATURE_DD_IBS_OBS
230# ifdef O_DIRECT
228 if (n < 0 && (G.flags & FLAG_IDIRECT) && clear_O_DIRECT(ifd)) 231 if (n < 0 && (G.flags & FLAG_IDIRECT) && clear_O_DIRECT(ifd))
229 goto read_again; 232 goto read_again;
233# endif
230#endif 234#endif
231 return n; 235 return n;
232} 236}
@@ -239,8 +243,10 @@ static bool write_and_stats(const void *buf, size_t len, size_t obs,
239 IF_FEATURE_DD_IBS_OBS(write_again:) 243 IF_FEATURE_DD_IBS_OBS(write_again:)
240 n = full_write(ofd, buf, len); 244 n = full_write(ofd, buf, len);
241#if ENABLE_FEATURE_DD_IBS_OBS 245#if ENABLE_FEATURE_DD_IBS_OBS
246# ifdef O_DIRECT
242 if (n < 0 && (G.flags & FLAG_ODIRECT) && clear_O_DIRECT(ofd)) 247 if (n < 0 && (G.flags & FLAG_ODIRECT) && clear_O_DIRECT(ofd))
243 goto write_again; 248 goto write_again;
249# endif
244#endif 250#endif
245 251
246#if ENABLE_FEATURE_DD_THIRD_STATUS_LINE 252#if ENABLE_FEATURE_DD_THIRD_STATUS_LINE
@@ -501,8 +507,13 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
501 if (infile) { 507 if (infile) {
502 int iflag = O_RDONLY; 508 int iflag = O_RDONLY;
503#if ENABLE_FEATURE_DD_IBS_OBS 509#if ENABLE_FEATURE_DD_IBS_OBS
504 if (G.flags & FLAG_IDIRECT) 510 if (G.flags & FLAG_IDIRECT) {
511# ifdef O_DIRECT
505 iflag |= O_DIRECT; 512 iflag |= O_DIRECT;
513# else
514 bb_error_msg_and_die("O_DIRECT not supported on this platform");
515# endif
516 }
506#endif 517#endif
507 xmove_fd(xopen(infile, iflag), ifd); 518 xmove_fd(xopen(infile, iflag), ifd);
508 } else { 519 } else {
@@ -516,8 +527,13 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
516 if (G.flags & FLAG_APPEND) 527 if (G.flags & FLAG_APPEND)
517 oflag |= O_APPEND; 528 oflag |= O_APPEND;
518#if ENABLE_FEATURE_DD_IBS_OBS 529#if ENABLE_FEATURE_DD_IBS_OBS
519 if (G.flags & FLAG_ODIRECT) 530 if (G.flags & FLAG_ODIRECT) {
531# ifdef O_DIRECT
520 oflag |= O_DIRECT; 532 oflag |= O_DIRECT;
533# else
534 bb_error_msg_and_die("O_DIRECT not supported on this platform");
535# endif
536 }
521#endif 537#endif
522 xmove_fd(xopen(outfile, oflag), ofd); 538 xmove_fd(xopen(outfile, oflag), ofd);
523 539
diff --git a/klibc-utils/run-init.c b/klibc-utils/run-init.c
index 73c677bab..77fc0e60c 100644
--- a/klibc-utils/run-init.c
+++ b/klibc-utils/run-init.c
@@ -8,6 +8,7 @@
8//config:config RUN_INIT 8//config:config RUN_INIT
9//config: bool "run-init (7.7 kb)" 9//config: bool "run-init (7.7 kb)"
10//config: default y 10//config: default y
11//config: select PLATFORM_LINUX
11//config: help 12//config: help
12//config: The run-init utility is used from initramfs to select a new 13//config: The run-init utility is used from initramfs to select a new
13//config: root device. Under initramfs, you have to use this instead of 14//config: root device. Under initramfs, you have to use this instead of
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index 209d1d560..c289245c0 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -13,6 +13,7 @@
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
16//config: help 17//config: help
17//config: Adjtimex reads and optionally sets adjustment parameters for 18//config: Adjtimex reads and optionally sets adjustment parameters for
18//config: the Linux clock adjustment algorithm. 19//config: the Linux clock adjustment algorithm.
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index da26f5e19..46749fb9c 100644
--- a/miscutils/i2c_tools.c
+++ b/miscutils/i2c_tools.c
@@ -11,30 +11,35 @@
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
14//config: help 15//config: help
15//config: Read from I2C/SMBus chip registers. 16//config: Read from I2C/SMBus chip registers.
16//config: 17//config:
17//config:config I2CSET 18//config:config I2CSET
18//config: bool "i2cset (6.7 kb)" 19//config: bool "i2cset (6.7 kb)"
19//config: default y 20//config: default y
21//config: select PLATFORM_LINUX
20//config: help 22//config: help
21//config: Set I2C registers. 23//config: Set I2C registers.
22//config: 24//config:
23//config:config I2CDUMP 25//config:config I2CDUMP
24//config: bool "i2cdump (7.1 kb)" 26//config: bool "i2cdump (7.1 kb)"
25//config: default y 27//config: default y
28//config: select PLATFORM_LINUX
26//config: help 29//config: help
27//config: Examine I2C registers. 30//config: Examine I2C registers.
28//config: 31//config:
29//config:config I2CDETECT 32//config:config I2CDETECT
30//config: bool "i2cdetect (7.1 kb)" 33//config: bool "i2cdetect (7.1 kb)"
31//config: default y 34//config: default y
35//config: select PLATFORM_LINUX
32//config: help 36//config: help
33//config: Detect I2C chips. 37//config: Detect I2C chips.
34//config: 38//config:
35//config:config I2CTRANSFER 39//config:config I2CTRANSFER
36//config: bool "i2ctransfer (4.0 kb)" 40//config: bool "i2ctransfer (4.0 kb)"
37//config: default y 41//config: default y
42//config: select PLATFORM_LINUX
38//config: help 43//config: help
39//config: Send user-defined I2C messages in one transfer. 44//config: Send user-defined I2C messages in one transfer.
40//config: 45//config:
diff --git a/miscutils/partprobe.c b/miscutils/partprobe.c
index 0fb1927b7..0abed6ff1 100644
--- a/miscutils/partprobe.c
+++ b/miscutils/partprobe.c
@@ -7,6 +7,7 @@
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
10//config: help 11//config: help
11//config: Ask kernel to rescan partition table. 12//config: Ask kernel to rescan partition table.
12 13
diff --git a/miscutils/ubirename.c b/miscutils/ubirename.c
index 06a0adacf..e7c56640c 100644
--- a/miscutils/ubirename.c
+++ b/miscutils/ubirename.c
@@ -9,6 +9,7 @@
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
12//config: help 13//config: help
13//config: Utility to rename UBI volumes 14//config: Utility to rename UBI volumes
14 15
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index 9f5a4b849..91a20239d 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -11,6 +11,7 @@
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
14//config: help 15//config: help
15//config: The watchdog utility is used with hardware or software watchdog 16//config: The watchdog utility is used with hardware or software watchdog
16//config: device drivers. It opens the specified watchdog device special file 17//config: device drivers. It opens the specified watchdog device special file
diff --git a/modutils/Config.src b/modutils/Config.src
index 188296814..b8ba3b7b6 100644
--- a/modutils/Config.src
+++ b/modutils/Config.src
@@ -8,6 +8,7 @@ menu "Linux Module Utilities"
8config MODPROBE_SMALL 8config MODPROBE_SMALL
9 bool "Simplified modutils" 9 bool "Simplified modutils"
10 default y 10 default y
11 select PLATFORM_LINUX
11 help 12 help
12 Build smaller (~1.5 kbytes), simplified module tools. 13 Build smaller (~1.5 kbytes), simplified module tools.
13 14
diff --git a/modutils/depmod.c b/modutils/depmod.c
index bb42bbefe..9e39481c5 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -10,6 +10,7 @@
10//config:config DEPMOD 10//config:config DEPMOD
11//config: bool "depmod (27 kb)" 11//config: bool "depmod (27 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: depmod generates modules.dep (and potentially modules.alias 15//config: depmod generates modules.dep (and potentially modules.alias
15//config: and modules.symbols) that contain dependency information 16//config: and modules.symbols) that contain dependency information
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 8f7163e25..85b46cdd6 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -9,6 +9,7 @@
9//config:config INSMOD 9//config:config INSMOD
10//config: bool "insmod (22 kb)" 10//config: bool "insmod (22 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: insmod is used to load specified modules in the running kernel. 14//config: insmod is used to load specified modules in the running kernel.
14 15
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 2beb12362..39dc8e6b7 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -10,6 +10,7 @@
10//config:config LSMOD 10//config:config LSMOD
11//config: bool "lsmod (1.9 kb)" 11//config: bool "lsmod (1.9 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: lsmod is used to display a list of loaded modules. 15//config: lsmod is used to display a list of loaded modules.
15//config: 16//config:
diff --git a/modutils/modinfo.c b/modutils/modinfo.c
index 0a86c3296..5d01179a0 100644
--- a/modutils/modinfo.c
+++ b/modutils/modinfo.c
@@ -8,6 +8,7 @@
8//config:config MODINFO 8//config:config MODINFO
9//config: bool "modinfo (24 kb)" 9//config: bool "modinfo (24 kb)"
10//config: default y 10//config: default y
11//config: select PLATFORM_LINUX
11//config: help 12//config: help
12//config: Show information about a Linux Kernel module 13//config: Show information about a Linux Kernel module
13 14
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index 235706fd5..77c4bb74d 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -10,6 +10,7 @@
10//config:config MODPROBE 10//config:config MODPROBE
11//config: bool "modprobe (28 kb)" 11//config: bool "modprobe (28 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: Handle the loading of modules, and their dependencies on a high 15//config: Handle the loading of modules, and their dependencies on a high
15//config: level. 16//config: level.
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 2b3c39153..8d4639f50 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -10,6 +10,7 @@
10//config:config RMMOD 10//config:config RMMOD
11//config: bool "rmmod (3.3 kb)" 11//config: bool "rmmod (3.3 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: rmmod is used to unload specified modules from the kernel. 15//config: rmmod is used to unload specified modules from the kernel.
15 16
diff --git a/networking/arp.c b/networking/arp.c
index 16783ab95..6519f8156 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -15,6 +15,7 @@
15//config:config ARP 15//config:config ARP
16//config: bool "arp (10 kb)" 16//config: bool "arp (10 kb)"
17//config: default y 17//config: default y
18//config: select PLATFORM_LINUX
18//config: help 19//config: help
19//config: Manipulate the system ARP cache. 20//config: Manipulate the system ARP cache.
20 21
diff --git a/networking/arping.c b/networking/arping.c
index 86f0221ed..fd0e1b276 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -8,6 +8,7 @@
8//config:config ARPING 8//config:config ARPING
9//config: bool "arping (9 kb)" 9//config: bool "arping (9 kb)"
10//config: default y 10//config: default y
11//config: select PLATFORM_LINUX
11//config: help 12//config: help
12//config: Ping hosts by ARP packets. 13//config: Ping hosts by ARP packets.
13 14
diff --git a/networking/brctl.c b/networking/brctl.c
index 956bd91f3..b353210d7 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -12,6 +12,7 @@
12//config:config BRCTL 12//config:config BRCTL
13//config: bool "brctl (4.7 kb)" 13//config: bool "brctl (4.7 kb)"
14//config: default y 14//config: default y
15//config: select PLATFORM_LINUX
15//config: help 16//config: help
16//config: Manage ethernet bridges. 17//config: Manage ethernet bridges.
17//config: Supports addbr/delbr and addif/delif. 18//config: Supports addbr/delbr and addif/delif.
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 9ee232a66..4090959b8 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -27,6 +27,7 @@
27//config:config IFCONFIG 27//config:config IFCONFIG
28//config: bool "ifconfig (12 kb)" 28//config: bool "ifconfig (12 kb)"
29//config: default y 29//config: default y
30//config: select PLATFORM_LINUX
30//config: help 31//config: help
31//config: Ifconfig is used to configure the kernel-resident network interfaces. 32//config: Ifconfig is used to configure the kernel-resident network interfaces.
32//config: 33//config:
diff --git a/networking/ifplugd.c b/networking/ifplugd.c
index 0b55bf4e5..bc4303ef0 100644
--- a/networking/ifplugd.c
+++ b/networking/ifplugd.c
@@ -9,6 +9,7 @@
9//config:config IFPLUGD 9//config:config IFPLUGD
10//config: bool "ifplugd (10 kb)" 10//config: bool "ifplugd (10 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: Network interface plug detection daemon. 14//config: Network interface plug detection daemon.
14 15
diff --git a/networking/ip.c b/networking/ip.c
index 7c3208699..23ee7d24b 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -11,6 +11,7 @@
11//config:config IP 11//config:config IP
12//config: bool "ip (35 kb)" 12//config: bool "ip (35 kb)"
13//config: default y 13//config: default y
14//config: select PLATFORM_LINUX
14//config: help 15//config: help
15//config: The "ip" applet is a TCP/IP interface configuration and routing 16//config: The "ip" applet is a TCP/IP interface configuration and routing
16//config: utility. 17//config: utility.
@@ -21,6 +22,7 @@
21//config:config IPADDR 22//config:config IPADDR
22//config: bool "ipaddr (14 kb)" 23//config: bool "ipaddr (14 kb)"
23//config: default y 24//config: default y
25//config: select PLATFORM_LINUX
24//config: select FEATURE_IP_ADDRESS 26//config: select FEATURE_IP_ADDRESS
25//config: help 27//config: help
26//config: Short form of "ip addr" 28//config: Short form of "ip addr"
@@ -28,6 +30,7 @@
28//config:config IPLINK 30//config:config IPLINK
29//config: bool "iplink (17 kb)" 31//config: bool "iplink (17 kb)"
30//config: default y 32//config: default y
33//config: select PLATFORM_LINUX
31//config: select FEATURE_IP_LINK 34//config: select FEATURE_IP_LINK
32//config: help 35//config: help
33//config: Short form of "ip link" 36//config: Short form of "ip link"
@@ -35,6 +38,7 @@
35//config:config IPROUTE 38//config:config IPROUTE
36//config: bool "iproute (15 kb)" 39//config: bool "iproute (15 kb)"
37//config: default y 40//config: default y
41//config: select PLATFORM_LINUX
38//config: select FEATURE_IP_ROUTE 42//config: select FEATURE_IP_ROUTE
39//config: help 43//config: help
40//config: Short form of "ip route" 44//config: Short form of "ip route"
@@ -49,6 +53,7 @@
49//config:config IPRULE 53//config:config IPRULE
50//config: bool "iprule (10 kb)" 54//config: bool "iprule (10 kb)"
51//config: default y 55//config: default y
56//config: select PLATFORM_LINUX
52//config: select FEATURE_IP_RULE 57//config: select FEATURE_IP_RULE
53//config: help 58//config: help
54//config: Short form of "ip rule" 59//config: Short form of "ip rule"
@@ -56,6 +61,7 @@
56//config:config IPNEIGH 61//config:config IPNEIGH
57//config: bool "ipneigh (8.3 kb)" 62//config: bool "ipneigh (8.3 kb)"
58//config: default y 63//config: default y
64//config: select PLATFORM_LINUX
59//config: select FEATURE_IP_NEIGH 65//config: select FEATURE_IP_NEIGH
60//config: help 66//config: help
61//config: Short form of "ip neigh" 67//config: Short form of "ip neigh"
diff --git a/networking/nameif.c b/networking/nameif.c
index 66e042688..3ccd935b8 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -12,6 +12,7 @@
12//config:config NAMEIF 12//config:config NAMEIF
13//config: bool "nameif (6.6 kb)" 13//config: bool "nameif (6.6 kb)"
14//config: default y 14//config: default y
15//config: select PLATFORM_LINUX
15//config: select FEATURE_SYSLOG 16//config: select FEATURE_SYSLOG
16//config: help 17//config: help
17//config: nameif is used to rename network interface by its MAC address. 18//config: nameif is used to rename network interface by its MAC address.
diff --git a/networking/route.c b/networking/route.c
index 26146f8e9..616572814 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -27,6 +27,7 @@
27//config:config ROUTE 27//config:config ROUTE
28//config: bool "route (8.7 kb)" 28//config: bool "route (8.7 kb)"
29//config: default y 29//config: default y
30//config: select PLATFORM_LINUX
30//config: help 31//config: help
31//config: Route displays or manipulates the kernel's IP routing tables. 32//config: Route displays or manipulates the kernel's IP routing tables.
32 33
diff --git a/networking/tc.c b/networking/tc.c
index 43187f7ee..1f4bcce2b 100644
--- a/networking/tc.c
+++ b/networking/tc.c
@@ -9,6 +9,7 @@
9//config:config TC 9//config:config TC
10//config: bool "tc (8.3 kb)" 10//config: bool "tc (8.3 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: Show / manipulate traffic control settings 14//config: Show / manipulate traffic control settings
14//config: 15//config:
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 4bbe1ab8e..2ba990fd0 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -963,8 +963,10 @@ traceroute_init(int op, char **argv)
963 if (af == AF_INET) { 963 if (af == AF_INET) {
964 xmove_fd(xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP), rcvsock); 964 xmove_fd(xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP), rcvsock);
965#if ENABLE_FEATURE_TRACEROUTE_VERBOSE 965#if ENABLE_FEATURE_TRACEROUTE_VERBOSE
966# ifdef IP_PKTINFO
966 /* want recvmsg to report target local address (for -v) */ 967 /* want recvmsg to report target local address (for -v) */
967 setsockopt_1(rcvsock, IPPROTO_IP, IP_PKTINFO); 968 setsockopt_1(rcvsock, IPPROTO_IP, IP_PKTINFO);
969# endif
968#endif 970#endif
969 } 971 }
970#if ENABLE_TRACEROUTE6 972#if ENABLE_TRACEROUTE6
diff --git a/networking/tunctl.c b/networking/tunctl.c
index 97e6917aa..59cae331c 100644
--- a/networking/tunctl.c
+++ b/networking/tunctl.c
@@ -12,6 +12,7 @@
12//config:config TUNCTL 12//config:config TUNCTL
13//config: bool "tunctl (6.2 kb)" 13//config: bool "tunctl (6.2 kb)"
14//config: default y 14//config: default y
15//config: select PLATFORM_LINUX
15//config: help 16//config: help
16//config: tunctl creates or deletes tun devices. 17//config: tunctl creates or deletes tun devices.
17//config: 18//config:
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src
index 8c8c11c26..23e2b40d8 100644
--- a/networking/udhcp/Config.src
+++ b/networking/udhcp/Config.src
@@ -6,6 +6,7 @@
6config UDHCPD 6config UDHCPD
7 bool "udhcpd (21 kb)" 7 bool "udhcpd (21 kb)"
8 default y 8 default y
9 select PLATFORM_LINUX
9 help 10 help
10 udhcpd is a DHCP server geared primarily toward embedded systems, 11 udhcpd is a DHCP server geared primarily toward embedded systems,
11 while striving to be fully functional and RFC compliant. 12 while striving to be fully functional and RFC compliant.
@@ -53,6 +54,7 @@ config DUMPLEASES
53config DHCPRELAY 54config DHCPRELAY
54 bool "dhcprelay (5.2 kb)" 55 bool "dhcprelay (5.2 kb)"
55 default y 56 default y
57 select PLATFORM_LINUX
56 help 58 help
57 dhcprelay listens for DHCP requests on one or more interfaces 59 dhcprelay listens for DHCP requests on one or more interfaces
58 and forwards these requests to a different interface or DHCP 60 and forwards these requests to a different interface or DHCP
@@ -61,6 +63,7 @@ config DHCPRELAY
61config UDHCPC 63config UDHCPC
62 bool "udhcpc (24 kb)" 64 bool "udhcpc (24 kb)"
63 default y 65 default y
66 select PLATFORM_LINUX
64 help 67 help
65 udhcpc is a DHCP client geared primarily toward embedded systems, 68 udhcpc is a DHCP client geared primarily toward embedded systems,
66 while striving to be fully functional and RFC compliant. 69 while striving to be fully functional and RFC compliant.
diff --git a/procps/free.c b/procps/free.c
index 0b68e1b88..c734f757d 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -9,6 +9,7 @@
9//config:config FREE 9//config:config FREE
10//config: bool "free (3.1 kb)" 10//config: bool "free (3.1 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: free displays the total amount of free and used physical and swap 14//config: free displays the total amount of free and used physical and swap
14//config: memory in the system, as well as the buffers used by the kernel. 15//config: memory in the system, as well as the buffers used by the kernel.
diff --git a/procps/uptime.c b/procps/uptime.c
index 4fd0c9d2d..4992c263e 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -14,6 +14,7 @@
14//config:config UPTIME 14//config:config UPTIME
15//config: bool "uptime (3.7 kb)" 15//config: bool "uptime (3.7 kb)"
16//config: default y 16//config: default y
17//config: select PLATFORM_LINUX
17//config: help 18//config: help
18//config: uptime gives a one line display of the current time, how long 19//config: uptime gives a one line display of the current time, how long
19//config: the system has been running, how many users are currently logged 20//config: the system has been running, how many users are currently logged
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index df0edee0a..ddf50071d 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -19,6 +19,7 @@
19//config:config KLOGD 19//config:config KLOGD
20//config: bool "klogd (5.7 kb)" 20//config: bool "klogd (5.7 kb)"
21//config: default y 21//config: default y
22//config: select PLATFORM_LINUX
22//config: help 23//config: help
23//config: klogd is a utility which intercepts and logs all 24//config: klogd is a utility which intercepts and logs all
24//config: messages from the Linux kernel and sends the messages 25//config: messages from the Linux kernel and sends the messages
diff --git a/util-linux/acpid.c b/util-linux/acpid.c
index 00613f8e3..7bce8abea 100644
--- a/util-linux/acpid.c
+++ b/util-linux/acpid.c
@@ -9,6 +9,7 @@
9//config:config ACPID 9//config:config ACPID
10//config: bool "acpid (9 kb)" 10//config: bool "acpid (9 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: acpid listens to ACPI events coming either in textual form from 14//config: acpid listens to ACPI events coming either in textual form from
14//config: /proc/acpi/event (though it is marked deprecated it is still widely 15//config: /proc/acpi/event (though it is marked deprecated it is still widely
diff --git a/util-linux/blkdiscard.c b/util-linux/blkdiscard.c
index 7ac8045f9..2291eec21 100644
--- a/util-linux/blkdiscard.c
+++ b/util-linux/blkdiscard.c
@@ -8,6 +8,7 @@
8//config:config BLKDISCARD 8//config:config BLKDISCARD
9//config: bool "blkdiscard (4.3 kb)" 9//config: bool "blkdiscard (4.3 kb)"
10//config: default y 10//config: default y
11//config: select PLATFORM_LINUX
11//config: help 12//config: help
12//config: blkdiscard discards sectors on a given device. 13//config: blkdiscard discards sectors on a given device.
13 14
diff --git a/util-linux/blkid.c b/util-linux/blkid.c
index 4a820771f..008ae5d9e 100644
--- a/util-linux/blkid.c
+++ b/util-linux/blkid.c
@@ -9,6 +9,7 @@
9//config:config BLKID 9//config:config BLKID
10//config: bool "blkid (12 kb)" 10//config: bool "blkid (12 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: select VOLUMEID 13//config: select VOLUMEID
13//config: help 14//config: help
14//config: Lists labels and UUIDs of all filesystems. 15//config: Lists labels and UUIDs of all filesystems.
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index 6670b84de..5da887f0e 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -11,6 +11,7 @@
11//config:config DMESG 11//config:config DMESG
12//config: bool "dmesg (3.7 kb)" 12//config: bool "dmesg (3.7 kb)"
13//config: default y 13//config: default y
14//config: select PLATFORM_LINUX
14//config: help 15//config: help
15//config: dmesg is used to examine or control the kernel ring buffer. When the 16//config: dmesg is used to examine or control the kernel ring buffer. When the
16//config: Linux kernel prints messages to the system log, they are stored in 17//config: Linux kernel prints messages to the system log, they are stored in
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 20e7d56fa..e9ebbd5d4 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -10,6 +10,7 @@
10//config:config FDISK 10//config:config FDISK
11//config: bool "fdisk (37 kb)" 11//config: bool "fdisk (37 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: The fdisk utility is used to divide hard disks into one or more 15//config: The fdisk utility is used to divide hard disks into one or more
15//config: logical disks, which are generally called partitions. This utility 16//config: logical disks, which are generally called partitions. This utility
diff --git a/util-linux/findfs.c b/util-linux/findfs.c
index f5621a1fa..7ca9dc96b 100644
--- a/util-linux/findfs.c
+++ b/util-linux/findfs.c
@@ -10,6 +10,7 @@
10//config:config FINDFS 10//config:config FINDFS
11//config: bool "findfs (12 kb)" 11//config: bool "findfs (12 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: select VOLUMEID 14//config: select VOLUMEID
14//config: help 15//config: help
15//config: Prints the name of a filesystem with given label or UUID. 16//config: Prints the name of a filesystem with given label or UUID.
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 309169d25..d27113d97 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -11,6 +11,7 @@
11//config:config FDFLUSH 11//config:config FDFLUSH
12//config: bool "fdflush (1.3 kb)" 12//config: bool "fdflush (1.3 kb)"
13//config: default y 13//config: default y
14//config: select PLATFORM_LINUX
14//config: help 15//config: help
15//config: fdflush is only needed when changing media on slightly-broken 16//config: fdflush is only needed when changing media on slightly-broken
16//config: removable media drives. It is used to make Linux believe that a 17//config: removable media drives. It is used to make Linux believe that a
@@ -23,6 +24,7 @@
23//config:config FREERAMDISK 24//config:config FREERAMDISK
24//config: bool "freeramdisk (1.3 kb)" 25//config: bool "freeramdisk (1.3 kb)"
25//config: default y 26//config: default y
27//config: select PLATFORM_LINUX
26//config: help 28//config: help
27//config: Linux allows you to create ramdisks. This utility allows you to 29//config: Linux allows you to create ramdisks. This utility allows you to
28//config: delete them and completely free all memory that was used for the 30//config: delete them and completely free all memory that was used for the
diff --git a/util-linux/fsfreeze.c b/util-linux/fsfreeze.c
index 6e2ff0a54..fb0b3c4bd 100644
--- a/util-linux/fsfreeze.c
+++ b/util-linux/fsfreeze.c
@@ -7,6 +7,7 @@
7//config:config FSFREEZE 7//config:config FSFREEZE
8//config: bool "fsfreeze (3.5 kb)" 8//config: bool "fsfreeze (3.5 kb)"
9//config: default y 9//config: default y
10//config: select PLATFORM_LINUX
10//config: select LONG_OPTS 11//config: select LONG_OPTS
11//config: help 12//config: help
12//config: Halt new accesses and flush writes on a mounted filesystem. 13//config: Halt new accesses and flush writes on a mounted filesystem.
diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c
index 6d673002f..12bab40d1 100644
--- a/util-linux/fstrim.c
+++ b/util-linux/fstrim.c
@@ -10,6 +10,7 @@
10//config:config FSTRIM 10//config:config FSTRIM
11//config: bool "fstrim (4.4 kb)" 11//config: bool "fstrim (4.4 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: Discard unused blocks on a mounted filesystem. 15//config: Discard unused blocks on a mounted filesystem.
15 16
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 723b09589..2edadfa4d 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -9,6 +9,7 @@
9//config:config HWCLOCK 9//config:config HWCLOCK
10//config: bool "hwclock (5.8 kb)" 10//config: bool "hwclock (5.8 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: The hwclock utility is used to read and set the hardware clock 14//config: The hwclock utility is used to read and set the hardware clock
14//config: on a system. This is primarily used to set the current time on 15//config: on a system. This is primarily used to set the current time on
diff --git a/util-linux/ionice.c b/util-linux/ionice.c
index 82bd309d1..b30d5f78d 100644
--- a/util-linux/ionice.c
+++ b/util-linux/ionice.c
@@ -9,6 +9,7 @@
9//config:config IONICE 9//config:config IONICE
10//config: bool "ionice (3.8 kb)" 10//config: bool "ionice (3.8 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: Set/set program io scheduling class and priority 14//config: Set/set program io scheduling class and priority
14//config: Requires kernel >= 2.6.13 15//config: Requires kernel >= 2.6.13
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index 24f7a2349..ec0cf04e4 100644
--- a/util-linux/losetup.c
+++ b/util-linux/losetup.c
@@ -9,6 +9,7 @@
9//config:config LOSETUP 9//config:config LOSETUP
10//config: bool "losetup (5.5 kb)" 10//config: bool "losetup (5.5 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: losetup is used to associate or detach a loop device with a regular 14//config: losetup is used to associate or detach a loop device with a regular
14//config: file or block device, and to query the status of a loop device. This 15//config: file or block device, and to query the status of a loop device. This
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index ebdc0c254..f6de7ad2a 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -10,6 +10,7 @@
10//config:config MDEV 10//config:config MDEV
11//config: bool "mdev (17 kb)" 11//config: bool "mdev (17 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: mdev is a mini-udev implementation for dynamically creating device 15//config: mdev is a mini-udev implementation for dynamically creating device
15//config: nodes in the /dev directory. 16//config: nodes in the /dev directory.
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c
index fcf374b2d..892b0867a 100644
--- a/util-linux/mkfs_ext2.c
+++ b/util-linux/mkfs_ext2.c
@@ -10,6 +10,7 @@
10//config:config MKE2FS 10//config:config MKE2FS
11//config: bool "mke2fs (10 kb)" 11//config: bool "mke2fs (10 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: Utility to create EXT2 filesystems. 15//config: Utility to create EXT2 filesystems.
15//config: 16//config:
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c
index 821371953..5136446eb 100644
--- a/util-linux/mkfs_vfat.c
+++ b/util-linux/mkfs_vfat.c
@@ -10,6 +10,7 @@
10//config:config MKDOSFS 10//config:config MKDOSFS
11//config: bool "mkdosfs (7.2 kb)" 11//config: bool "mkdosfs (7.2 kb)"
12//config: default y 12//config: default y
13//config: select PLATFORM_LINUX
13//config: help 14//config: help
14//config: Utility to create FAT32 filesystems. 15//config: Utility to create FAT32 filesystems.
15//config: 16//config:
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 4e65b6b46..e3aeda666 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -20,6 +20,7 @@
20//config:config MOUNT 20//config:config MOUNT
21//config: bool "mount (23 kb)" 21//config: bool "mount (23 kb)"
22//config: default y 22//config: default y
23//config: select PLATFORM_LINUX
23//config: help 24//config: help
24//config: All files and filesystems in Unix are arranged into one big directory 25//config: All files and filesystems in Unix are arranged into one big directory
25//config: tree. The 'mount' utility is used to graft a filesystem onto a 26//config: tree. The 'mount' utility is used to graft a filesystem onto a
diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c
index 1aa045b35..8652e803a 100644
--- a/util-linux/nsenter.c
+++ b/util-linux/nsenter.c
@@ -9,6 +9,7 @@
9//config:config NSENTER 9//config:config NSENTER
10//config: bool "nsenter (6.5 kb)" 10//config: bool "nsenter (6.5 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: Run program with namespaces of other processes. 14//config: Run program with namespaces of other processes.
14 15
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c
index ecc891100..41f29da32 100644
--- a/util-linux/pivot_root.c
+++ b/util-linux/pivot_root.c
@@ -11,6 +11,7 @@
11//config:config PIVOT_ROOT 11//config:config PIVOT_ROOT
12//config: bool "pivot_root (1.1 kb)" 12//config: bool "pivot_root (1.1 kb)"
13//config: default y 13//config: default y
14//config: select PLATFORM_LINUX
14//config: help 15//config: help
15//config: The pivot_root utility swaps the mount points for the root filesystem 16//config: The pivot_root utility swaps the mount points for the root filesystem
16//config: with some other mounted filesystem. This allows you to do all sorts 17//config: with some other mounted filesystem. This allows you to do all sorts
diff --git a/util-linux/setarch.c b/util-linux/setarch.c
index cf8ef0064..57051a683 100644
--- a/util-linux/setarch.c
+++ b/util-linux/setarch.c
@@ -9,6 +9,7 @@
9//config:config SETARCH 9//config:config SETARCH
10//config: bool "setarch (3.6 kb)" 10//config: bool "setarch (3.6 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: The linux32 utility is used to create a 32bit environment for the 14//config: The linux32 utility is used to create a 32bit environment for the
14//config: specified program (usually a shell). It only makes sense to have 15//config: specified program (usually a shell). It only makes sense to have
@@ -18,12 +19,14 @@
18//config:config LINUX32 19//config:config LINUX32
19//config: bool "linux32 (3.3 kb)" 20//config: bool "linux32 (3.3 kb)"
20//config: default y 21//config: default y
22//config: select PLATFORM_LINUX
21//config: help 23//config: help
22//config: Alias to "setarch linux32". 24//config: Alias to "setarch linux32".
23//config: 25//config:
24//config:config LINUX64 26//config:config LINUX64
25//config: bool "linux64 (3.3 kb)" 27//config: bool "linux64 (3.3 kb)"
26//config: default y 28//config: default y
29//config: select PLATFORM_LINUX
27//config: help 30//config: help
28//config: Alias to "setarch linux64". 31//config: Alias to "setarch linux64".
29 32
diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c
index 6904cf019..bfe2c7a7a 100644
--- a/util-linux/setpriv.c
+++ b/util-linux/setpriv.c
@@ -9,6 +9,7 @@
9//config:config SETPRIV 9//config:config SETPRIV
10//config: bool "setpriv (6.6 kb)" 10//config: bool "setpriv (6.6 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: select LONG_OPTS 13//config: select LONG_OPTS
13//config: help 14//config: help
14//config: Run a program with different Linux privilege settings. 15//config: Run a program with different Linux privilege settings.
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index e2ff4b5cc..567869cc7 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -9,6 +9,7 @@
9//config:config SWAPON 9//config:config SWAPON
10//config: bool "swapon (15 kb)" 10//config: bool "swapon (15 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: Once you have created some swap space using 'mkswap', you also need 14//config: Once you have created some swap space using 'mkswap', you also need
14//config: to enable your swap space with the 'swapon' utility. The 'swapoff' 15//config: to enable your swap space with the 'swapon' utility. The 'swapoff'
@@ -35,6 +36,7 @@
35//config:config SWAPOFF 36//config:config SWAPOFF
36//config: bool "swapoff (14 kb)" 37//config: bool "swapoff (14 kb)"
37//config: default y 38//config: default y
39//config: select PLATFORM_LINUX
38//config: 40//config:
39//config:config FEATURE_SWAPONOFF_LABEL 41//config:config FEATURE_SWAPONOFF_LABEL
40//config: bool "Support specifying devices by label or UUID" 42//config: bool "Support specifying devices by label or UUID"
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 901c0b8db..f61002236 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -9,6 +9,7 @@
9//config:config SWITCH_ROOT 9//config:config SWITCH_ROOT
10//config: bool "switch_root (5.5 kb)" 10//config: bool "switch_root (5.5 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: help 13//config: help
13//config: The switch_root utility is used from initramfs to select a new 14//config: The switch_root utility is used from initramfs to select a new
14//config: root device. Under initramfs, you have to use this instead of 15//config: root device. Under initramfs, you have to use this instead of
diff --git a/util-linux/uevent.c b/util-linux/uevent.c
index db11746d0..bd39c3acd 100644
--- a/util-linux/uevent.c
+++ b/util-linux/uevent.c
@@ -6,6 +6,7 @@
6//config:config UEVENT 6//config:config UEVENT
7//config: bool "uevent (3.1 kb)" 7//config: bool "uevent (3.1 kb)"
8//config: default y 8//config: default y
9//config: select PLATFORM_LINUX
9//config: help 10//config: help
10//config: uevent is a netlink listener for kernel uevent notifications 11//config: uevent is a netlink listener for kernel uevent notifications
11//config: sent via netlink. It is usually used for dynamic device creation. 12//config: sent via netlink. It is usually used for dynamic device creation.
diff --git a/util-linux/unshare.c b/util-linux/unshare.c
index 06b938074..156a96d94 100644
--- a/util-linux/unshare.c
+++ b/util-linux/unshare.c
@@ -9,6 +9,7 @@
9//config:config UNSHARE 9//config:config UNSHARE
10//config: bool "unshare (7.2 kb)" 10//config: bool "unshare (7.2 kb)"
11//config: default y 11//config: default y
12//config: select PLATFORM_LINUX
12//config: depends on !NOMMU 13//config: depends on !NOMMU
13//config: select LONG_OPTS 14//config: select LONG_OPTS
14//config: help 15//config: help