diff options
author | Samuel Thibault | 2022-10-16 02:04:59 +0200 |
---|---|---|
committer | Denys Vlasenko | 2022-11-29 14:10:22 +0100 |
commit | 77216c368f3ae65c3a9fc504d28d3fadd46d6d8d (patch) | |
tree | 8f4bf1ca9cd3aea68214bc93ab5a586401979f47 /util-linux | |
parent | 75fbff1326674b768cee66f32e3799d5bff5e194 (diff) | |
download | busybox-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.zip busybox-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.tar.gz |
Fix non-Linux builds
Various tools are Linuxish and should thus only attempted to build on
Linux only. Some features are also Linux-only.
Also, libresolv is used on all GNU platforms, notably GNU/Hurd and
GNU/kfreeBSD.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/acpid.c | 1 | ||||
-rw-r--r-- | util-linux/blkdiscard.c | 1 | ||||
-rw-r--r-- | util-linux/blkid.c | 1 | ||||
-rw-r--r-- | util-linux/dmesg.c | 1 | ||||
-rw-r--r-- | util-linux/fdisk.c | 1 | ||||
-rw-r--r-- | util-linux/findfs.c | 1 | ||||
-rw-r--r-- | util-linux/freeramdisk.c | 2 | ||||
-rw-r--r-- | util-linux/fsfreeze.c | 1 | ||||
-rw-r--r-- | util-linux/fstrim.c | 1 | ||||
-rw-r--r-- | util-linux/hwclock.c | 1 | ||||
-rw-r--r-- | util-linux/ionice.c | 1 | ||||
-rw-r--r-- | util-linux/losetup.c | 1 | ||||
-rw-r--r-- | util-linux/mdev.c | 1 | ||||
-rw-r--r-- | util-linux/mkfs_ext2.c | 1 | ||||
-rw-r--r-- | util-linux/mkfs_vfat.c | 1 | ||||
-rw-r--r-- | util-linux/mount.c | 1 | ||||
-rw-r--r-- | util-linux/nsenter.c | 1 | ||||
-rw-r--r-- | util-linux/pivot_root.c | 1 | ||||
-rw-r--r-- | util-linux/setarch.c | 3 | ||||
-rw-r--r-- | util-linux/setpriv.c | 1 | ||||
-rw-r--r-- | util-linux/swaponoff.c | 2 | ||||
-rw-r--r-- | util-linux/switch_root.c | 1 | ||||
-rw-r--r-- | util-linux/uevent.c | 1 | ||||
-rw-r--r-- | util-linux/unshare.c | 1 |
24 files changed, 28 insertions, 0 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c index 00613f8..7bce8ab 100644 --- a/util-linux/acpid.c +++ b/util-linux/acpid.c @@ -9,6 +9,7 @@ //config:config ACPID //config: bool "acpid (9 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: acpid listens to ACPI events coming either in textual form from //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 7ac8045..2291eec 100644 --- a/util-linux/blkdiscard.c +++ b/util-linux/blkdiscard.c @@ -8,6 +8,7 @@ //config:config BLKDISCARD //config: bool "blkdiscard (4.3 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: blkdiscard discards sectors on a given device. diff --git a/util-linux/blkid.c b/util-linux/blkid.c index 4a82077..008ae5d 100644 --- a/util-linux/blkid.c +++ b/util-linux/blkid.c @@ -9,6 +9,7 @@ //config:config BLKID //config: bool "blkid (12 kb)" //config: default y +//config: select PLATFORM_LINUX //config: select VOLUMEID //config: help //config: Lists labels and UUIDs of all filesystems. diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 6670b84..5da887f 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c @@ -11,6 +11,7 @@ //config:config DMESG //config: bool "dmesg (3.7 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: dmesg is used to examine or control the kernel ring buffer. When the //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 20e7d56..e9ebbd5 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -10,6 +10,7 @@ //config:config FDISK //config: bool "fdisk (37 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: The fdisk utility is used to divide hard disks into one or more //config: logical disks, which are generally called partitions. This utility diff --git a/util-linux/findfs.c b/util-linux/findfs.c index f5621a1..7ca9dc9 100644 --- a/util-linux/findfs.c +++ b/util-linux/findfs.c @@ -10,6 +10,7 @@ //config:config FINDFS //config: bool "findfs (12 kb)" //config: default y +//config: select PLATFORM_LINUX //config: select VOLUMEID //config: help //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 309169d..d27113d 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -11,6 +11,7 @@ //config:config FDFLUSH //config: bool "fdflush (1.3 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: fdflush is only needed when changing media on slightly-broken //config: removable media drives. It is used to make Linux believe that a @@ -23,6 +24,7 @@ //config:config FREERAMDISK //config: bool "freeramdisk (1.3 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Linux allows you to create ramdisks. This utility allows you to //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 6e2ff0a..fb0b3c4 100644 --- a/util-linux/fsfreeze.c +++ b/util-linux/fsfreeze.c @@ -7,6 +7,7 @@ //config:config FSFREEZE //config: bool "fsfreeze (3.5 kb)" //config: default y +//config: select PLATFORM_LINUX //config: select LONG_OPTS //config: help //config: Halt new accesses and flush writes on a mounted filesystem. diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c index 6d67300..12bab40 100644 --- a/util-linux/fstrim.c +++ b/util-linux/fstrim.c @@ -10,6 +10,7 @@ //config:config FSTRIM //config: bool "fstrim (4.4 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Discard unused blocks on a mounted filesystem. diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 723b095..2edadfa 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c @@ -9,6 +9,7 @@ //config:config HWCLOCK //config: bool "hwclock (5.8 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: The hwclock utility is used to read and set the hardware clock //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 82bd309..b30d5f7 100644 --- a/util-linux/ionice.c +++ b/util-linux/ionice.c @@ -9,6 +9,7 @@ //config:config IONICE //config: bool "ionice (3.8 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Set/set program io scheduling class and priority //config: Requires kernel >= 2.6.13 diff --git a/util-linux/losetup.c b/util-linux/losetup.c index 24f7a23..ec0cf04 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c @@ -9,6 +9,7 @@ //config:config LOSETUP //config: bool "losetup (5.5 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: losetup is used to associate or detach a loop device with a regular //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 ebdc0c2..f6de7ad 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -10,6 +10,7 @@ //config:config MDEV //config: bool "mdev (17 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: mdev is a mini-udev implementation for dynamically creating device //config: nodes in the /dev directory. diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c index fcf374b..892b086 100644 --- a/util-linux/mkfs_ext2.c +++ b/util-linux/mkfs_ext2.c @@ -10,6 +10,7 @@ //config:config MKE2FS //config: bool "mke2fs (10 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Utility to create EXT2 filesystems. //config: diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c index 8213719..5136446 100644 --- a/util-linux/mkfs_vfat.c +++ b/util-linux/mkfs_vfat.c @@ -10,6 +10,7 @@ //config:config MKDOSFS //config: bool "mkdosfs (7.2 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Utility to create FAT32 filesystems. //config: diff --git a/util-linux/mount.c b/util-linux/mount.c index 4e65b6b..e3aeda6 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -20,6 +20,7 @@ //config:config MOUNT //config: bool "mount (23 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: All files and filesystems in Unix are arranged into one big directory //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 1aa045b..8652e80 100644 --- a/util-linux/nsenter.c +++ b/util-linux/nsenter.c @@ -9,6 +9,7 @@ //config:config NSENTER //config: bool "nsenter (6.5 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Run program with namespaces of other processes. diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c index ecc8911..41f29da 100644 --- a/util-linux/pivot_root.c +++ b/util-linux/pivot_root.c @@ -11,6 +11,7 @@ //config:config PIVOT_ROOT //config: bool "pivot_root (1.1 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: The pivot_root utility swaps the mount points for the root filesystem //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 cf8ef00..57051a6 100644 --- a/util-linux/setarch.c +++ b/util-linux/setarch.c @@ -9,6 +9,7 @@ //config:config SETARCH //config: bool "setarch (3.6 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: The linux32 utility is used to create a 32bit environment for the //config: specified program (usually a shell). It only makes sense to have @@ -18,12 +19,14 @@ //config:config LINUX32 //config: bool "linux32 (3.3 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Alias to "setarch linux32". //config: //config:config LINUX64 //config: bool "linux64 (3.3 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Alias to "setarch linux64". diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c index 6904cf0..bfe2c7a 100644 --- a/util-linux/setpriv.c +++ b/util-linux/setpriv.c @@ -9,6 +9,7 @@ //config:config SETPRIV //config: bool "setpriv (6.6 kb)" //config: default y +//config: select PLATFORM_LINUX //config: select LONG_OPTS //config: help //config: Run a program with different Linux privilege settings. diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index e2ff4b5..567869c 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -9,6 +9,7 @@ //config:config SWAPON //config: bool "swapon (15 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Once you have created some swap space using 'mkswap', you also need //config: to enable your swap space with the 'swapon' utility. The 'swapoff' @@ -35,6 +36,7 @@ //config:config SWAPOFF //config: bool "swapoff (14 kb)" //config: default y +//config: select PLATFORM_LINUX //config: //config:config FEATURE_SWAPONOFF_LABEL //config: bool "Support specifying devices by label or UUID" diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 901c0b8..f610022 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c @@ -9,6 +9,7 @@ //config:config SWITCH_ROOT //config: bool "switch_root (5.5 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: The switch_root utility is used from initramfs to select a new //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 db11746..bd39c3a 100644 --- a/util-linux/uevent.c +++ b/util-linux/uevent.c @@ -6,6 +6,7 @@ //config:config UEVENT //config: bool "uevent (3.1 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: uevent is a netlink listener for kernel uevent notifications //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 06b9380..156a96d 100644 --- a/util-linux/unshare.c +++ b/util-linux/unshare.c @@ -9,6 +9,7 @@ //config:config UNSHARE //config: bool "unshare (7.2 kb)" //config: default y +//config: select PLATFORM_LINUX //config: depends on !NOMMU //config: select LONG_OPTS //config: help |