Show
Ignore:
Timestamp:
11/22/00 18:55:46 (13 years ago)
Author:
mds
Message:

(mds) add more suggestions to contributors of things to do

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/doc/developers/new_drivers

    r334 r931  
     1These are the steps you should follow to write a new driver and 
     2submit it to us so that it will be applied cleanly to our package. 
     3 
    14* Contact us first. 
    25  You are of course free to write your own drivers, but it is smart to 
    36  check first nobody else is already working on it. 
     7  Check our "New Drivers" page for information also. 
     8 
    49* Write the new driver.  
    510  For a chip driver, use lm78.c as template. For an SMBus-only adapter,  
     
    1116  chip. If these sensor values need scaling, this should be done through 
    1217  the configuration file. 
     18 
     19* Meet Kernel coding standards 
     20  See Documentation/CodingStyle in the kernel source. 
     21  Be sure and use 8 column tabs. 
     22 
    1323* Add the driver to the Makefile. 
    1424  Usually, you can just add it to KERNEL{CHIPS,DRIVERS}TARGETS in the 
    1525  Module.mk file in the directory itself. 
     26 
    1627* Make sure it compiles cleanly. 
    1728  If you compile with 'make WARN=1', you usually get many additional 
     
    2132  stop the driver from functioning; they should just output additional 
    2233  information. 
     34 
    2335* Check for external symbols 
    2436  'nm --extern --defined' should only output symbols starting with __module, 
    2537  cleanup_module, init_module and some kernel versioning symbols. Mark all 
    2638  other symbols as static in your source file. 
     39 
    2740* Test the module 
    2841  This is usually the boring part... 
     42  Test both with 2.2.x and 2.4.x kernels. 
     43 
    2944* Add detection information to prog/detect/sensors-detect 
    3045  This is a perl script that automatically detects what chips and adapters 
    3146  are present. Contact Frodo if you need help. 
     47 
    3248* Add chip information to lib/chips.{c,h} for chip drivers 
    3349  Until you have done this, the chip will be invisible for user-level 
    3450  programs. Again, contact Frodo if you need help with this. 
     51 
    3552* Add entries to etc/sensors.conf.eg 
    3653  If needed, you can set defaults here. 
     54 
    3755* Add a dedicated procedure to prog/sensors/chips.[ch] 
    3856  This makes the included sensors program pretty-print your chip information. 
     57 
     58* Add the name of the device to the README file. 
     59 
     60* Add your name to the CONTRIBUTORS file. 
     61 
     62* Add entries to the CHANGES file. 
     63 
     64* Write a doc/chips/xxx or doc/busses/xxx file. 
     65 
     66* Make sure the GPL boilerplate and your name (and if applicable your 
     67  company's name) is at the top of the 
     68  new driver so we know you are giving it to us under the GPL. 
     69 
     70* Submit the changes to us a patch against CVS.