graysky
68bda21952
Fix iconv linking detection for glibc-based builds
...
The current iconv detection checks if libiconv.so exists via ldconfig,
but fails on glibc systems where iconv is built into libc and doesn't
require separate linking. This causes build failures:
ld: cannot find -liconv: No such file or directory
Replace the ldconfig check with a compile test that actually verifies
if iconv functions are available without additional libraries. This
correctly detects glibc's built-in iconv while still linking -liconv
on musl/uclibc systems that need it.
Fixes build on glibc-based systems including OpenWrt glibc targets.
2026-04-21 13:32:57 +02:00
Michal Suchanek
c297368a0e
tests: Do not use config file in json test
...
Pass -c /dev/null when running tests
Fixes: e06d99df ("tests: Add trivial json formatting test")
2024-02-17 12:50:05 +01:00
Michal Suchanek
9e5156cb67
check: Check perl program syntax
2024-02-17 12:06:28 +01:00
Michal Suchanek
e06d99df7c
tests: Add trivial json formatting test
2024-01-17 19:43:50 +01:00
Michal Suchanek
989f387a9a
tests: shellcheck the debug progs
2024-01-17 19:41:20 +01:00
Michal Suchanek
06bd510ef7
Install troubleshooting tools
2024-01-17 19:39:46 +01:00
Michal Suchanek
e0efe7dc76
Use output filename in flex invocation
...
With stdout output file name in debuginfo is specified as <stdout>.
2023-12-30 18:58:32 +01:00
Michal Suchanek
c829b4c7fb
Add LDFLAGS handling similar to CFLAGS
2023-12-29 15:37:00 +01:00
Michal Suchanek
f1af9ceae2
Add test makefile target
2023-12-28 20:58:39 +01:00
hramrach
7602fa5ff7
Merge pull request 'Add support for static only build' ( #254 ) from ffontaine/master into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/254
2023-12-24 12:43:47 +01:00
hramrach
b5f7b4c7c1
Merge pull request 'Tiny cleanup' ( #361 ) from a1346054/fixes into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/361
2023-12-24 12:41:54 +01:00
hramrach
67898d9d9b
Merge pull request 'ZSH completion for sensors and sensors-detect' ( #404 ) from VorpalBlade/feature/zsh-completion into master
...
Reviewed-on: http://localhost:8888/hramrach/lm-sensors/pulls/404
2023-12-24 11:58:03 +01:00
Arvid Norlander
3e82636733
ZSH completion for sensors and sensors-detect
2022-07-18 18:00:45 +02:00
Sam James
ad8490240e
Makefile: drop usage of 'which'
...
`which` is an external command which isn't required by POSIX.
Debian and other distributions (like Gentoo!) are looking
to drop it from their base set of packages.
Switch to `command -v` which should always work instead.
Signed-off-by: Sam James <sam@gentoo.org >
2022-06-27 10:22:54 +01:00
a1346054
92e1538a19
Trim trailing whitespace
...
Making sure that none of the actual test files were touched.
2021-08-24 22:19:37 +00:00
Fabrice Fontaine
e31cb3b2f8
Add support for static only build
...
This patch adds support for a BUILD_SHARED_LIB variable that allows to
enable/disable the build of the shared library, in order to support
static-only builds.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/lm-sensors/0001-static-build.patch ]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com >
2020-07-13 11:30:36 +02:00
Lucas Magasweran
0863eff8fa
makefile: use target arch when determining what programs to compile
...
To better support cross-compilation, the Makefile should detect the
compiler's target architecture instead of using `uname -m`, which
returns the host architecture. This approach uses the `gcc`/`clang`
compatible `-dumpmachine` option.
Cross-compilation worked but because of this bug, `isadump` and
`isaset` x86 ISA specific tools were built for PCC and ARM.
This run-time issue became a compile-time issue when `glibc` 2.30
removed the `sys/io.h` I/O port functions on ARM.
Also renamed `MACHINE` to `ARCH` to match cross-compiler conventions
for specifying the target architecture. For example,
`make ARCH=arm CC=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar`
Fixes #190
Signed-off-by: Lucas Magasweran <lucas.magasweran@ieee.org >
Reported-and-tested-by: Millhouse <milhouse@libreelec.tv >
2019-08-08 15:26:30 +02:00
Ondřej Lysoněk
6413b80847
Fix stale links
...
Fixes #8
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com >
2018-09-01 19:38:55 +02:00
Jean Delvare
621dc10aa7
Spelling fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5871 7894878c-1315-0410-8ee3-d5d059ff63e0
2010-10-26 13:24:12 +00:00
Jean Delvare
c288f034a1
Warn the user is either flex or bison is missing.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5869 7894878c-1315-0410-8ee3-d5d059ff63e0
2010-10-19 18:34:34 +00:00
Jean Delvare
1bb3175a5f
Recent versions of module-init-tools only want *.conf files under
...
/etc/modprobe.d. So rename our configuration file to lm_sensors.conf
there. Also let "make install" rename the file if it already exists.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5760 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-24 13:52:28 +00:00
Jean Delvare
dc4d5bb286
Drop unused default rule.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5712 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-28 11:53:36 +00:00
Jean Delvare
2ea3bf392b
Make it possible to skip building of the static library. Just run:
...
make BUILD_STATIC_LIB=0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5711 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 09:18:06 +00:00
Jean Delvare
fee909f2d1
Add a note about the default configuration file change at installation
...
time.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5634 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-04 08:44:56 +00:00
Jean Delvare
43c87ec8ed
Install sensors.conf.default instead of sensors.conf.eg.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5605 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 14:21:57 +00:00
Jean Delvare
f2e518511d
Patch from Aurelien Jarno:
...
I have just noticed that the FSF address is the old one in all files
except COPYING. Please find a patch below to fix that.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5163 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-26 13:37:12 +00:00
Jean Delvare
7ab0e911cc
Document the variable overriding mechanism ( #2296 ).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5107 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-19 10:20:45 +00:00
Hans de Goede
4075aa1660
Fix building on PPC machines
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5035 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-23 19:50:05 +00:00
Jean Delvare
fb920578a9
Let libsensors know the default path to its configuration file.
...
That way, applications no longer have to care.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4985 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-25 09:48:18 +00:00
Jean Delvare
d4c69b1468
bash should no longer be needed at build time.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4877 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-24 14:02:01 +00:00
Mark M. Hoffman
e95e7694f5
Fix -W options so flex/yacc code compiles completely without warnings. Also,
...
Use -Wundef everywhere except flex/yacc code, specifically.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4794 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-16 14:50:37 +00:00
Jean Delvare
44c669a26d
Don't use -Wundef for the library, flex/bison-generated code doesn't play
...
well with it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4783 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-05 21:31:01 +00:00
Jean Delvare
f27710deb7
sensors-conf-convert: New, script to convert old configuration files
...
to use the new symbol names.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4770 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-05 14:28:19 +00:00
Jean Delvare
ac5ae18fe7
Drop the package target.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4628 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-19 16:59:16 +00:00
Jean Delvare
f905e5f242
Delete LM_DATE and libsensors_date.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4601 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-10 19:38:14 +00:00
Jean Delvare
b79274babd
Add some more warning flags, and fix these warnings.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4545 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-03 16:03:22 +00:00
Jean Delvare
c084fe78f4
kernel/include/sensors.h is no longer used; delete it.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4515 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 07:57:33 +00:00
Jean Delvare
d5cc9ae889
Move the eeprom decoding scripts to the i2c-tools package.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4489 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 10:10:34 +00:00
Jean Delvare
85393f35b6
Always build libsensors with sysfs support.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4458 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 08:18:47 +00:00
Jean Delvare
9232f4eb43
Delete all kernel chip drivers, documentation and references. We are
...
moving to a user-space-only package, all the drivers are maintained in
the Linux kernel tree itself.
I tried to update the documentation a bit, but there's still a lot to
go. In fact, a complete rewrite seems to be needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4397 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-09 13:00:30 +00:00
Jean Delvare
b170e0be99
Delete all kernel bus drivers, documentation and references. We are
...
moving to a user-space-only package, all the drivers are maintained in
the Linux kernel tree itself.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4386 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-05 12:43:03 +00:00
Jean Delvare
95996b4638
Delete mkpatch and all references thereto. The kernel modules will soon
...
be removed from the tree so there won't be anything left to generate a
patch from.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4383 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-02 10:35:14 +00:00
Mark M. Hoffman
c5ffa7b635
Merge from trunk (4303:4355) out to 3.0.0 branch.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4357 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-04-03 12:55:30 +00:00
Mark M. Hoffman
b5ff067425
Modify libsensors scanner build flags...
...
* add -8
When using -Cf, flex defaults to generating a 7-bit scanner instead of 8-bit.
That's a bug, since we want the scanner to handle any character. Using -8 restores
the proper behavior.
* change -Cf to -Cfe
This allows a nice reduction in object size (from ~60KiB to ~15KiB) with almost
no impact to speed (adds < 100 cycles to scanner, where total cycles is > 1M).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4272 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-29 21:07:24 +00:00
Mark M. Hoffman
c9d758c669
Don't create lex.backup unless DEBUG is enabled.
...
Also, delete it during 'make clean'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4228 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-05 14:41:34 +00:00
Mark M. Hoffman
9c3a817633
Merge scanner-opt-branch (r4121:r4221) to trunk.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4222 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-26 11:50:27 +00:00
Rudolf Marek
c9bd83748b
Fix the homepage address
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4157 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-17 21:01:35 +00:00
Jean Delvare
f7fb55a8a8
Revert previous Makefile change (Silent errors on missing dependency files)
...
as it appears to break with GNU make 3.81.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4102 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-20 08:46:38 +00:00
Jean Delvare
45bc29eb71
More .PHONY targets.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4088 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-09 06:55:59 +00:00
Jean Delvare
dd7848c788
Typo fix, thanks to Brian C for reporting.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4079 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-07-29 16:21:54 +00:00