summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-10-16 02:04:59 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2022-11-29 14:10:22 +0100
commit77216c368f3ae65c3a9fc504d28d3fadd46d6d8d (patch)
tree8f4bf1ca9cd3aea68214bc93ab5a586401979f47 /modutils
parent75fbff1326674b768cee66f32e3799d5bff5e194 (diff)
downloadbusybox-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.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
7 files changed, 7 insertions, 0 deletions
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"
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 bb42bbefe..9e39481c5 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 8f7163e25..85b46cdd6 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 2beb12362..39dc8e6b7 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 0a86c3296..5d01179a0 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 235706fd5..77c4bb74d 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 2b3c39153..8d4639f50 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.