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 /miscutils | |
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 'miscutils')
-rw-r--r-- | miscutils/adjtimex.c | 1 | ||||
-rw-r--r-- | miscutils/i2c_tools.c | 5 | ||||
-rw-r--r-- | miscutils/partprobe.c | 1 | ||||
-rw-r--r-- | miscutils/ubirename.c | 1 | ||||
-rw-r--r-- | miscutils/watchdog.c | 1 |
5 files changed, 9 insertions, 0 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index 209d1d5..c289245 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c @@ -13,6 +13,7 @@ //config:config ADJTIMEX //config: bool "adjtimex (4.7 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Adjtimex reads and optionally sets adjustment parameters for //config: the Linux clock adjustment algorithm. diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index da26f5e..46749fb 100644 --- a/miscutils/i2c_tools.c +++ b/miscutils/i2c_tools.c @@ -11,30 +11,35 @@ //config:config I2CGET //config: bool "i2cget (5.5 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Read from I2C/SMBus chip registers. //config: //config:config I2CSET //config: bool "i2cset (6.7 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Set I2C registers. //config: //config:config I2CDUMP //config: bool "i2cdump (7.1 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Examine I2C registers. //config: //config:config I2CDETECT //config: bool "i2cdetect (7.1 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Detect I2C chips. //config: //config:config I2CTRANSFER //config: bool "i2ctransfer (4.0 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Send user-defined I2C messages in one transfer. //config: diff --git a/miscutils/partprobe.c b/miscutils/partprobe.c index 0fb1927..0abed6f 100644 --- a/miscutils/partprobe.c +++ b/miscutils/partprobe.c @@ -7,6 +7,7 @@ //config:config PARTPROBE //config: bool "partprobe (3.5 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Ask kernel to rescan partition table. diff --git a/miscutils/ubirename.c b/miscutils/ubirename.c index 06a0ada..e7c5664 100644 --- a/miscutils/ubirename.c +++ b/miscutils/ubirename.c @@ -9,6 +9,7 @@ //config:config UBIRENAME //config: bool "ubirename (2.4 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: Utility to rename UBI volumes diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index 9f5a4b8..91a2023 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c @@ -11,6 +11,7 @@ //config:config WATCHDOG //config: bool "watchdog (5.3 kb)" //config: default y +//config: select PLATFORM_LINUX //config: help //config: The watchdog utility is used with hardware or software watchdog //config: device drivers. It opens the specified watchdog device special file |