Changeset 4480

Show
Ignore:
Timestamp:
06/27/07 10:10:19 (7 years ago)
Author:
khali
Message:

Move i2cdetect, i2cdump, i2cset and i2cget to a separate package
(i2c-tools).

Files:
2 added
4 modified
2 copied
10 moved

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/doc/developers/applications

    r2142 r4480  
    3535   busses such as ISA. 
    3636 
    37    For good examples, see prog/detect/i2cdetect.c and 
     37   For good examples, see i2cdetect.c (in the i2c-tools package) and 
    3838   prog/detect/sensors-detect. 
    3939 
     
    5757   busses such as ISA. 
    5858 
    59    For good examples, see prog/detect/i2cdetect.c, 
    60    prog/dump/i2cdump.c, and prog/dump/i2cset.c. 
     59   For good examples, see i2cdetect.c, i2cdump.c, and i2cset.c (all in the 
     60   i2c-tools package). 
    6161 
    6262 
  • lm-sensors/branches/lm-sensors-3.0.0/doc/progs

    r4460 r4480  
    1919  An example of a very simple hardware health monitoring daemon. 
    2020 
    21 * prog/detect/i2cdetect (written in C, installed by 'make install') 
    22   This program scans your complete I2C or SMBus adapter for connected devices. 
    23   Syntax: 
    24     i2cdetect 0 
    25   Here the '0' stands for the bus number (run "i2cdetect -l" 
    26   to list all installed busses). 
    27  
    2821* prog/detect/sensors-detect (written in Perl, installed by 'make install') 
    2922  This program tries to detect the available SMBus adapters and the chips 
    3023  connected to them, as well as Super-I/O and misc chips. It also generates 
    3124  modprobe lines and module options. This program is interactive. 
    32  
    33 * prog/dump/i2cdump (written in C, installed by 'make install') 
    34   This program dumps the registers of an I2C device. 
    35   Usual syntax: 
    36     i2cdump 0 0x4c b 
    37   Here the '0' stands for the bus number (run i2cdump with no arguments  
    38   to list all installed busses). 
    39   '0x49' is the device address, and 'b' or 'w' stands for byte 
    40   or word data. 
    41  
    42 * prog/dump/i2cset (written in C, installed by 'make install') 
    43   prog/dump/i2cget (written in C, installed by 'make install') 
    44   These programs are used to write to or read from a register of an 
    45   I2C device. Usual syntax: 
    46     i2cset bus device address data 
    47     i2cget bus device address 
    4825 
    4926* prog/dump/isadump (written in C, installed by 'make install') 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/Module.mk

    r2604 r4480  
    2323 
    2424PROGDETECTMAN8DIR := $(MANDIR)/man8 
    25 PROGDETECTMAN8FILES := $(MODULE_DIR)/i2cdetect.8 $(MODULE_DIR)/sensors-detect.8 
     25PROGDETECTMAN8FILES := $(MODULE_DIR)/sensors-detect.8 
    2626 
    2727# Regrettably, even 'simply expanded variables' will not put their currently 
    2828# defined value verbatim into the command-list of rules... 
    29 PROGDETECTTARGETS := $(MODULE_DIR)/i2cdetect 
    30 PROGDETECTSOURCES := $(MODULE_DIR)/i2cdetect.c 
    31 PROGDETECTSBININSTALL := $(MODULE_DIR)/sensors-detect \ 
    32                          $(MODULE_DIR)/i2cdetect 
    33  
    34 # Include all dependency files. We use '.rd' to indicate this will create 
    35 # executables. 
    36 INCLUDEFILES += $(PROGDETECTSOURCES:.c=.rd) 
     29PROGDETECTSBININSTALL := $(MODULE_DIR)/sensors-detect 
    3730 
    3831REMOVEDETECTBIN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(SBINDIR)/%,$(PROGDETECTSBININSTALL)) 
    3932REMOVEDETECTMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGDETECTMAN8DIR)/%,$(PROGDETECTMAN8FILES)) 
    4033 
    41 all-prog-detect: $(PROGDETECTTARGETS) 
     34all-prog-detect: 
    4235user :: all-prog-detect 
    43  
    44 $(MODULE_DIR)/i2cdetect: $(MODULE_DIR)/i2cdetect.ro prog/dump/i2cbusses.ro 
    45         $(CC) $(EXLDFLAGS) -o $@ $^ 
    4636 
    4737install-prog-detect: all-prog-detect 
     
    5646 
    5747clean-prog-detect: 
    58         $(RM) $(PROGDETECTDIR)/*.rd $(PROGDETECTDIR)/*.ro $(PROGDETECTTARGETS) 
    5948clean :: clean-prog-detect 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/dump/Module.mk

    r4256 r4480  
    2323 
    2424PROGDUMPMAN8DIR := $(MANDIR)/man8 
    25 PROGDUMPMAN8FILES := $(MODULE_DIR)/i2cdump.8 $(MODULE_DIR)/i2cset.8 \ 
    26                      $(MODULE_DIR)/i2cget.8 
     25PROGDUMPMAN8FILES := 
    2726 
    2827# Regrettably, even 'simply expanded variables' will not put their currently 
    2928# defined value verbatim into the command-list of rules... 
    30 PROGDUMPTARGETS := $(MODULE_DIR)/i2cdump $(MODULE_DIR)/i2cset \ 
    31                    $(MODULE_DIR)/i2cget 
    32 PROGDUMPSOURCES := $(MODULE_DIR)/i2cdump.c $(MODULE_DIR)/i2cset.c \ 
    33                    $(MODULE_DIR)/i2cget.c $(MODULE_DIR)/i2cbusses.c \ 
    34                    $(MODULE_DIR)/util.c 
    35 PROGDUMPBININSTALL := $(MODULE_DIR)/i2cdump $(MODULE_DIR)/i2cset \ 
    36                       $(MODULE_DIR)/i2cget 
     29PROGDUMPTARGETS := 
     30PROGDUMPSOURCES := $(MODULE_DIR)/util.c 
     31PROGDUMPBININSTALL := 
    3732 
    3833# Only build isadump and isaset on x86 machines. 
     
    5550user :: all-prog-dump 
    5651 
    57 $(MODULE_DIR)/i2cdump: $(MODULE_DIR)/i2cdump.ro $(MODULE_DIR)/i2cbusses.ro $(MODULE_DIR)/util.ro 
    58         $(CC) $(EXLDFLAGS) -o $@ $^ 
    59  
    60 $(MODULE_DIR)/i2cset: $(MODULE_DIR)/i2cset.ro $(MODULE_DIR)/i2cbusses.ro $(MODULE_DIR)/util.ro 
    61         $(CC) $(EXLDFLAGS) -o $@ $^ 
    62  
    63 $(MODULE_DIR)/i2cget: $(MODULE_DIR)/i2cget.ro $(MODULE_DIR)/i2cbusses.ro $(MODULE_DIR)/util.ro 
    64         $(CC) $(EXLDFLAGS) -o $@ $^ 
    65  
    6652$(MODULE_DIR)/isadump: $(MODULE_DIR)/isadump.ro $(MODULE_DIR)/superio.ro $(MODULE_DIR)/util.ro 
    6753        $(CC) $(EXLDFLAGS) -o $@ $^