From 77216c368f3ae65c3a9fc504d28d3fadd46d6d8d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Oct 2022 02:04:59 +0200 Subject: 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 Signed-off-by: Denys Vlasenko --- modutils/Config.src | 1 + modutils/depmod.c | 1 + modutils/insmod.c | 1 + modutils/lsmod.c | 1 + modutils/modinfo.c | 1 + modutils/modprobe.c | 1 + modutils/rmmod.c | 1 + 7 files changed, 7 insertions(+) (limited to 'modutils') 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. -- cgit v1.2.1