diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-10-16 02:04:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-11-29 14:10:22 +0100 |
commit | 77216c368f3ae65c3a9fc504d28d3fadd46d6d8d (patch) | |
tree | 8f4bf1ca9cd3aea68214bc93ab5a586401979f47 /miscutils/i2c_tools.c | |
parent | 75fbff1326674b768cee66f32e3799d5bff5e194 (diff) | |
download | busybox-w32-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.tar.gz busybox-w32-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.tar.bz2 busybox-w32-77216c368f3ae65c3a9fc504d28d3fadd46d6d8d.zip |
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/i2c_tools.c')
-rw-r--r-- | miscutils/i2c_tools.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index da26f5e19..46749fb9c 100644 --- a/miscutils/i2c_tools.c +++ b/miscutils/i2c_tools.c | |||
@@ -11,30 +11,35 @@ | |||
11 | //config:config I2CGET | 11 | //config:config I2CGET |
12 | //config: bool "i2cget (5.5 kb)" | 12 | //config: bool "i2cget (5.5 kb)" |
13 | //config: default y | 13 | //config: default y |
14 | //config: select PLATFORM_LINUX | ||
14 | //config: help | 15 | //config: help |
15 | //config: Read from I2C/SMBus chip registers. | 16 | //config: Read from I2C/SMBus chip registers. |
16 | //config: | 17 | //config: |
17 | //config:config I2CSET | 18 | //config:config I2CSET |
18 | //config: bool "i2cset (6.7 kb)" | 19 | //config: bool "i2cset (6.7 kb)" |
19 | //config: default y | 20 | //config: default y |
21 | //config: select PLATFORM_LINUX | ||
20 | //config: help | 22 | //config: help |
21 | //config: Set I2C registers. | 23 | //config: Set I2C registers. |
22 | //config: | 24 | //config: |
23 | //config:config I2CDUMP | 25 | //config:config I2CDUMP |
24 | //config: bool "i2cdump (7.1 kb)" | 26 | //config: bool "i2cdump (7.1 kb)" |
25 | //config: default y | 27 | //config: default y |
28 | //config: select PLATFORM_LINUX | ||
26 | //config: help | 29 | //config: help |
27 | //config: Examine I2C registers. | 30 | //config: Examine I2C registers. |
28 | //config: | 31 | //config: |
29 | //config:config I2CDETECT | 32 | //config:config I2CDETECT |
30 | //config: bool "i2cdetect (7.1 kb)" | 33 | //config: bool "i2cdetect (7.1 kb)" |
31 | //config: default y | 34 | //config: default y |
35 | //config: select PLATFORM_LINUX | ||
32 | //config: help | 36 | //config: help |
33 | //config: Detect I2C chips. | 37 | //config: Detect I2C chips. |
34 | //config: | 38 | //config: |
35 | //config:config I2CTRANSFER | 39 | //config:config I2CTRANSFER |
36 | //config: bool "i2ctransfer (4.0 kb)" | 40 | //config: bool "i2ctransfer (4.0 kb)" |
37 | //config: default y | 41 | //config: default y |
42 | //config: select PLATFORM_LINUX | ||
38 | //config: help | 43 | //config: help |
39 | //config: Send user-defined I2C messages in one transfer. | 44 | //config: Send user-defined I2C messages in one transfer. |
40 | //config: | 45 | //config: |