Changeset 549

Show
Ignore:
Timestamp:
09/10/99 16:55:08 (9 years ago)
Author:
frodo
Message:

mkpatch documentation, both as a separate /doc file and in the

script itself. And a minor typo fix in Config.in

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/TODO

    r516 r549  
    5757  tsx-11.mit.edu /pub/linux/sources/sbin or  
    5858  sunsite.unc.edu /pub/linux/system/daemons/watchdog 
     59* Add experimental drivers 
  • lm-sensors/trunk/mkpatch/Config.in

    r516 r549  
    1717    dep_tristate '  National Semiconductors LM80' CONFIG_SENSORS_LM80 $CONFIG_SENSORS 
    1818    dep_tristate '  Silicon Integrated Systems Corp. SiS5595' CONFIG_SENSORS_SIS5595 $CONFIG_SENSORS 
    19     dep_tristate '  Western Digital W83781D, W83782D and W83783S' CONFIG_SENSORS_W83781D $CONFIG_SENSORS 
     19    dep_tristate '  Winbond W83781D, W83782D and W83783S' CONFIG_SENSORS_W83781D $CONFIG_SENSORS 
    2020    bool '  Other I2C devices' CONFIG_SENSORS_OTHER  
    2121    if [ "$CONFIG_SENSORS_OTHER" = "y" ] ; then 
  • lm-sensors/trunk/mkpatch/mkpatch.pl

    r545 r549  
    2323$temp = "mkpatch/.temp"; 
    2424 
     25# Generate a diff between the old kernel file and the new I2C file. We 
     26# arrange the headers to tell us the old tree was under directory 
     27# `linux-old', and the new tree under `linux'. 
    2528# $_[0]: sensors package root (like /tmp/sensors) 
    2629# $_[1]: Linux kernel tree (like /usr/src/linux) 
     
    5659 
    5760 
     61# This generates diffs for the main Linux Makefile. 
     62# Three lines which add drivers/sensors/sensors.a to the DRIVERS list are  
     63# put just before the place where the architecture Makefile is included. 
     64# Of course, care is taken old lines are removed. 
    5865# $_[0]: sensors package root (like /tmp/sensors) 
    5966# $_[1]: Linux kernel tree (like /usr/src/linux) 
     
    8996} 
    9097 
     98# This generates diffs for drivers/Makefile 
     99# First, `sensors' is added to the ALL_SUB_DIRS list. Next, a couple of lines 
     100# to add sensors to the SUB_DIRS and/or MOD_SUB_DIRS lists is put right before 
     101# Rules.make is included. 
     102# Of course, care is taken old lines are removed. 
    91103# $_[0]: sensors package root (like /tmp/sensors) 
    92104# $_[1]: Linux kernel tree (like /usr/src/linux) 
     
    138150} 
    139151 
     152# This generates diffs for drivers/char/Config.in 
     153# It adds a line just before CONFIG_APM or main_menu_option lines to include 
     154# the sensors Config.in. 
     155# Of course, care is taken old lines are removed. 
    140156# $_[0]: sensors package root (like /tmp/sensors) 
    141157# $_[1]: Linux kernel tree (like /usr/src/linux) 
     
    170186  
    171187 
     188# This generates diffs for drivers/char/mem.c They are a bit intricate. 
     189# Lines are generated at the beginning to declare sensors_init_all 
     190# At the bottom, a call to sensors_init_all is added when the 
     191# new lm_sensors stuff is configured in. 
     192# Of course, care is taken old lines are removed. 
    172193# $_[0]: sensors package root (like /tmp/sensors) 
    173194# $_[1]: Linux kernel tree (like /usr/src/linux) 
     
    222243 
    223244 
     245# This generates diffs for drivers/i2c/Config.in 
     246# Several adapter drivers that are included in the lm_sensors package are 
     247# added at the bottom. 
     248# Of course, care is taken old lines are removed. 
    224249# $_[0]: sensors package root (like /tmp/sensors) 
    225250# $_[1]: Linux kernel tree (like /usr/src/linux) 
     
    260285} 
    261286 
     287# This generates diffs for drivers/i2c/Makefile. 
     288# Lines to add correct files to M_OBJS and/or L_OBJS are added just before 
     289# Rules.make is included 
     290# Of course, care is taken old lines are removed. 
    262291# $_[0]: sensors package root (like /tmp/sensors) 
    263292# $_[1]: Linux kernel tree (like /usr/src/linux) 
     
    330359} 
    331360 
     361# This generates diffs for drivers/i2c/i2c-core.c 
     362# Lines are generated at the beginning to declare several *_init functions. 
     363# At the bottom, calls to them are added when the sensors stuff is configured 
     364# in. 
     365# $_[0]: sensors package root (like /tmp/sensors) 
     366# $_[1]: Linux kernel tree (like /usr/src/linux) 
    332367sub gen_drivers_i2c_i2c_core_c 
    333368{ 
     
    393428} 
    394429 
    395  
     430# Main function 
    396431sub main 
    397432{