Commit Graph
56 Commits
Author SHA1 Message Date
Mark D. Studebaker 018f61392e take LINUX from /lib/modules/x.x.x/build; patch from
Dave Johnson <ddj@cascv.brown.edu>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1548 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-09-21 22:18:31 +00:00
Mark D. Studebaker 87b8b165ba use $CFLAGS and $CPPFLAGS from environment or if specified
in Makfile. Patch from
             "Kevin P. Fleming" <kevin@labsysgrp.com>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1361 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-29 01:37:07 +00:00
Merlin Hughes 1fb2fb31cb mh: sensord is only built if PROG_EXTRA:=sensord is specified.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1359 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-28 14:26:07 +00:00
Mark D. Studebaker 39cc76464b for kernels 2.4+, install modules to kernel/drivers/[i2c,sensors]
instead of misc, and delete old modules in misc. This will prevent
      duplicate modules.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1351 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-20 02:50:37 +00:00
Mark D. Studebaker 7261264a35 Updates for DEC Tsunami from Oleg Vdovikin
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1108 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-02 03:41:17 +00:00
Frodo Looijaard 258071770c A small comment about old flex versions
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@866 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-05 12:40:57 +00:00
Frodo Looijaard d8cff3d019 MODDIR changes, as promised
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@840 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-09 20:37:13 +00:00
Frodo Looijaard 3d1bd78e60 Changed detection of kernel name to use <linux/version.h>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@786 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-22 22:59:17 +00:00
Frodo Looijaard d11e84a773 Cleared up where the I2C_HEADERS variable has to point to.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@734 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-13 00:21:54 +00:00
Frodo Looijaard 01bad38253 Added DESTDIR Makefile variable
Set DESTDIR if you want to install at some other place then where you
will run everything from.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@675 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:52:28 +00:00
Merlin Hughes 8e5830460f (Merlin) Added simple sensord sensory logging daemon. Not installed by
default. Now uses libsensors. Ripped the display formatting code from
sensors (with some modification) but needless to say I've only tested
a single chip. Doesn't support alarms yet. With a bit of work, could
share the display formatting code with sensors so just one source needs
updating. Compiles on my machine.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@661 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-03 00:48:25 +00:00
Frodo Looijaard fc20445e02 Surer `make clean' implementation
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@581 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 10:52:50 +00:00
Frodo Looijaard c81440d21a Makefile changes for better behaviour with already patched kernels.
The Makefile now examine $(LINUX)/.config to see what modules need to be
compiled. It compiles only those modules which were either not configured
in at all, or were built as modules (ie. drivers which are built-in in the
kernel are not built, as they can not be overruled).

The above is still potentially dangerous, if we break the interface of
our modules. Still, it is much better than it was.
C


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@575 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-22 23:11:52 +00:00
Frodo Looijaard b7bb64350c Updated INSTALL and README files
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@567 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-20 15:12:11 +00:00
Frodo Looijaard 0a0860a7cd Makefile now automatically detects whether kernel modules need to
be made, or only the user-space utiltities.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@556 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-12 00:25:00 +00:00
Frodo Looijaard 576d91ee84 Matthias Andree's patch to find a better module directory to install
into. A a few other Makefile define changes. Nothing really
        important.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@547 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-03 11:47:33 +00:00
Frodo Looijaard d00f2e005d Moved the definition of SHELL to the top, to make it actually work.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@544 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-03 10:35:01 +00:00
Frodo Looijaard fcbe78a669 First step to make it possible to integrate lm_sensors modules into
the kernel.

* <kernel/init.h> is now included for all modules
* Initialization-time only functions and variables are marked with __init
* EXPORT_SYMBOL or EXPORT_NO_SYMBOLS declarations added


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@513 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 11:43:58 +00:00
Frodo Looijaard 24e547b88e First round of lm_sensors changes for the new I2C tree
* The i2c package can no longer be compiled as part of the lm_sensors tree
* The archive of the i2c package is removed
* smbus, i2c-dev and i2c-proc modules and headers have been removed; they
  are now completely integrated into the i2c package
* The fake i2c.h header has been removed; this also allowed us to remove
  the ugly LM_SENSORS and TBD defines.
* A new variable I2C_HEADERS is introduced in the Makefile. This allows
  us to install the i2c headers in, for example, /usr/local/include/linux.
* All files now include <linux/i2c.h> instead of "i2c.h" and "smbus.h"

Status: 'make dep' works, all the right include files are found. 'make all'
         does not yet work.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@496 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-19 11:45:27 +00:00
Frodo Looijaard 17bb1f4934 Slight fix to the Makefile for Debian users
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@495 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-13 23:09:09 +00:00
Philip Edelbrock f55a86c7db (Phil) Some cleaning up and documentation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@461 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-12 05:17:04 +00:00
Frodo Looijaard 8f44463bc7 Enhanced `make package'
It now handles CVS directories better, as well as '.#' files left-over by
CVS merges.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@450 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-06 19:12:57 +00:00
Frodo Looijaard 242ff1bf32 New file with a checklist for new releases
This checklist is printed when a `make package' is done. Change as needed,
Phil.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@427 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-26 01:05:18 +00:00
Frodo Looijaard 5e3495c3ab Changed modulesx installation path to the more logical
/lib/modules/current/extra/misc. I just hope this works in all
        distributions.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@419 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-23 11:41:03 +00:00
Frodo Looijaard 9a7ced8183 Removed old reference to prog/doc/Module.mk from master Makefile.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@386 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-14 13:03:23 +00:00
Frodo Looijaard 6d64665fdd New Makefile variables LINUX and LINUX_HEADERS
These will help those unfortunate people who use Debian or other braindead
distributions which ship with non-matching kernel headers in directories
/usr/include/{linux,asm}. For 'normal' people, nothing needs to be changed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@362 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-05 20:45:55 +00:00
Frodo Looijaard eb1b4d7ea4 Removed -Ikernel from CFLAGS now we have compat.h in kernel/include
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@359 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-03 20:11:08 +00:00
Frodo Looijaard 96ac13566f Finished renaming of detect.pl
* Either Phil had not done a 'cvs update', or I forgot a 'cvs commit'; anyway,
  the last changes to detect.pl have been ported to sensors-detect.
* Added a rule to the Makefile fragment to install it in $(SBINDIR).
* Added SBINDIR to the main Makefile.
* Deleted detect.pl


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@323 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-18 15:12:01 +00:00
Mark D. Studebaker 491eefbffc removed indent on comment on line 10 which caused my
make (gnu make V3.71) to fail.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@222 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-12 06:14:02 +00:00
Frodo Looijaard 9fb56e78bf More documentation updates
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@217 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-12 05:43:22 +00:00
Frodo Looijaard 5ff3e45aa0 New program: doc-features
This program automatically documents the available features for each chip.
Basically, it translates the data in lib/chips.c back to a human-readable
format.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@208 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-09 15:59:24 +00:00
Frodo Looijaard 24792039f6 Adrian's copyright patch applied
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@207 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-08 22:50:29 +00:00
Frodo Looijaard 73026248d4 Man-pages
I finally merged in Adrian's man-pages. libsensors.3 is unchanged from his
version; sensors.conf.5 is heavily edited, not because he did a bad job,
but because his source material was not very well written :-). It should
now tell you more about the config file than you ever wanted to know...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@205 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-08 19:57:30 +00:00
Frodo Looijaard face12a534 Stuff to get rid of the LM_SENSORS define
Until now, all installed include files depended on a #defined variable
LM_SENSORS: if it was defined, other files were included as "somefile.h"
instead of <linux/somefile.h>. This was clearly dangerous, and is fixed
now, by automatically deleting the offending lines from the include file
when it is installed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@180 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 15:36:01 +00:00
Frodo Looijaard f31a1f45f2 Makefile tweaks for the new kernel directory structure
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@179 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 14:45:20 +00:00
Philip Edelbrock ce7aea9a5a (Phil) Made slight adjustments so the new file arrangement will build.
I added two new make file 'includes': busses/Module.mk and chips/Module.mk
Frodo- You may want to review the makefile structure to make sure that
the system works as you intended.

Note: The docs still need to be updated to reflect the new file arrangement,
but at least it builds!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@176 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 06:10:00 +00:00
Frodo Looijaard eeddf2c5c7 Small Makefile typo fix
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@174 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-25 22:04:35 +00:00
Frodo Looijaard 33269d5252 Small fixes to make all programs compile cleanly with libc6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@168 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-14 00:41:44 +00:00
Frodo Looijaard 81c78982f6 The beginnings of i2c-dev
Everything is in, except the IOCTL hook (which will be pretty simple to add).
It compiles cleanly. It is not tested at all.

Also a very small fix for i2c-proc, and Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@158 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 01:32:09 +00:00
Frodo Looijaard dfc74d0f39 ISA utility to dump address/register type adderss spaces.
Usage: isadump <ADDR-REG> <DATA-REG>
For the default LM78, this would be `isadump 0x295 0x296' (addresses may be
specified as decimal, octal or hexadecimal).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@144 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-01 00:41:46 +00:00
Frodo Looijaard 8d608692ef SMP detection for newer kernels in Makefile
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@130 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-28 00:16:29 +00:00
Frodo Looijaard 657798a79c The announced changes to the LM78 voltages, and an example config file.
Note: GL518SM driver need this change, too; this is not yet done.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@106 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-23 02:27:52 +00:00
Frodo Looijaard b10d66cc58 The very beginnings of the new user-space application
It doesn't do much yet, but at least it compiles and links...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@99 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-21 16:49:11 +00:00
Frodo Looijaard e49c6712bf lib/Module.mk correction, to stop ldconfig from choking
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@92 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-19 10:36:55 +00:00
Frodo Looijaard c4cb096dd9 The first bunch of library files
These are the relatively well-tested files. They allow you to parse a
configuration file, and to build an internal abstract syntax tree.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@91 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-19 00:10:48 +00:00
Frodo Looijaard 52696a8d2d More Makefile stuff
* Added lib directory; the library will live here
* Added Makefile fragment in the lib dir
* Modified README.directories to include the new dir
* Added lib directory to the fragments the Makefile uses


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@90 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-18 18:39:32 +00:00
Frodo Looijaard e50c0d6684 Makefile updates
Several, mostly internal, things changed. Most notably, the install
directories are extended (we'll need this to install the new library).
Also, explicit rules for creating .c and .o files are added.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@88 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-18 16:31:56 +00:00
Frodo Looijaard 000b95cce0 Another Makefile simplification
Object files for executables (as opposed to modules) will now use the .ro
extension; their dependency file is a .rd file. Currently, this affects only
the i2c/eeprom/eeprom program. but in the future, there will be more
executables generated.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@52 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-08 23:51:29 +00:00
Frodo Looijaard 81dd46d199 Made sure the right i2c.h file was always included
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@23 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-02 17:43:13 +00:00
Frodo Looijaard 01bb2de024 Cleaned up the i2c files
* 'cvs admin -ko i2c' should disable all RCS keyword substitutions from now
  on
* Put all EXPORT stuff between #ifdef LM_SENSORS #endif statements.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@21 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-02 15:11:18 +00:00