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 /modutils | |
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 'modutils')
-rw-r--r-- | modutils/Config.src | 1 | ||||
-rw-r--r-- | modutils/depmod.c | 1 | ||||
-rw-r--r-- | modutils/insmod.c | 1 | ||||
-rw-r--r-- | modutils/lsmod.c | 1 | ||||
-rw-r--r-- | modutils/modinfo.c | 1 | ||||
-rw-r--r-- | modutils/modprobe.c | 1 | ||||
-rw-r--r-- | modutils/rmmod.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/modutils/Config.src b/modutils/Config.src index 1882968..b8ba3b7 100644 --- a/modutils/Config.src +++ b/modutils/Config.src @@ -8,6 +8,7 @@ menu "Linux Module Utilities" config MODPROBE_SMALL bool "Simplified modutils" default y + select PLATFORM_LINUX help Build smaller (~1.5 kbytes), simplified module tools. diff --git a/modutils/depmod.c b/modutils/depmod.c index bb42bbe..9e39481 100644 --- a/modutils/depmod.c +++ b/modutils/depmod.c @@ -10,6 +10,7 @@ //config:config DEPMOD //config: bool "depmod (27 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: depmod generates modules.dep (and potentially modules.alias //config: and modules.symbols) that contain dependency information diff --git a/modutils/insmod.c b/modutils/insmod.c index 8f7163e..85b46cd 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -9,6 +9,7 @@ //config:config INSMOD //config: bool "insmod (22 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: insmod is used to load specified modules in the running kernel. diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 2beb123..39dc8e6 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c @@ -10,6 +10,7 @@ //config:config LSMOD //config: bool "lsmod (1.9 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: lsmod is used to display a list of loaded modules. //config: diff --git a/modutils/modinfo.c b/modutils/modinfo.c index 0a86c32..5d01179 100644 --- a/modutils/modinfo.c +++ b/modutils/modinfo.c @@ -8,6 +8,7 @@ //config:config MODINFO //config: bool "modinfo (24 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Show information about a Linux Kernel module diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 235706f..77c4bb7 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c @@ -10,6 +10,7 @@ //config:config MODPROBE //config: bool "modprobe (28 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Handle the loading of modules, and their dependencies on a high //config: level. diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 2b3c391..8d4639f 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c @@ -10,6 +10,7 @@ //config:config RMMOD //config: bool "rmmod (3.3 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: rmmod is used to unload specified modules from the kernel. |