Changeset 3348

Show
Ignore:
Timestamp:
07/25/99 14:53:51 (9 years ago)
Author:
frodo
Message:

Added nice explanations for the `make *config' stage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/mkpatch/Config.in

    r3344 r3348  
    2222fi 
    2323 
    24   dep_tristate 'Character device interface' CONFIG_I2C_CHARDEV $CONFIG_I2C 
     24  dep_tristate 'I2C device interface' CONFIG_I2C_CHARDEV $CONFIG_I2C 
    2525 
    2626endmenu 
  • i2c/trunk/mkpatch/mkpatch.pl

    r3347 r3348  
    9393# $_[0]: i2c package root (like /tmp/i2c) 
    9494# $_[1]: Linux kernel tree (like /usr/src/linux) 
     95sub gen_Documentation_Configure_help 
     96{ 
     97  my ($package_root,$kernel_root) = @_; 
     98  my $kernel_file = "Documentation/Configure.help"; 
     99  my $package_file = $temp; 
     100 
     101  open INPUT,"$kernel_root/$kernel_file" 
     102        or die "Can't open `$kernel_root/$kernel_file'"; 
     103  open OUTPUT,">$package_root/$package_file" 
     104        or die "Can't open $package_root/$package_file"; 
     105  while(<INPUT>) { 
     106    while (m@I2C support@ or m@I2C bit-banging interfaces@ or 
     107           m@Philips style parallel port adapter@ or 
     108           m@ELV adapter@ or m@Velleman K9000 adapter@ or 
     109           m@I2C PCF 8584 interfaces@ or m@Elektor ISA card@ or 
     110           m@I2C device interface@ ) { 
     111      $_ = <INPUT>; 
     112      $_ = <INPUT>; 
     113      $_ = <INPUT> while not m@^\S$@ and not eof(INPUT); 
     114    } 
     115    if (eof(INPUT)) { 
     116      print OUTPUT <<'EOF' 
     117I2C support 
     118CONFIG_I2C 
     119  I2C (pronounce: I-square-C) is a slow bus protocol developed by 
     120  Philips. SMBus, or System Management Bus is a sub-protocol of I2C. 
     121 
     122  Both I2C and SMBus are supported here. You will need this for  
     123  hardware sensors support, and in the future for Video for Linux 
     124  support. 
     125 
     126  Beside this option, you will also need to select specific drivers  
     127  for your bus adapter(s).  
     128 
     129I2C bit-banging interfaces 
     130CONFIG_I2C_ALGOBIT 
     131  This allows you to use a range of I2C adapters called bit-banging 
     132  adapters. Why they are called so is rather technical and uninteresting; 
     133  but you need to select this if you own one of the adapters listed 
     134  under it. 
     135 
     136Philips style parallel port adapter 
     137CONFIG_I2C_PHILIPSPAR 
     138  This supports parallel-port I2C adapters made by Philips. Unless you 
     139  own such an adapter, you do not need to select this. 
     140 
     141ELV adapter 
     142CONFIG_I2C_ELV 
     143  This supports parallel-port I2C adapters called ELV. Unless you  
     144  own such an adapter, you do not need to select this. 
     145 
     146Velleman K9000 adapter 
     147CONFIG_I2C_VELLEMAN 
     148  This supports the Velleman K9000 parallel-port I2C adapter. Unless 
     149  you own such an adapter, you do not need to select this. 
     150 
     151I2C PCF 8584 interfaces 
     152CONFIG_I2C_ALGOPCF 
     153  This allows you to use a range of I2C adapters called PCF 
     154  adapters. Why they are called so is rather technical and uninteresting; 
     155  but you need to select this if you own one of the adapters listed 
     156  under it. 
     157 
     158Elektor ISA card 
     159CONFIG_I2C_ELEKTOR 
     160  This supports the PCF8584 ISA bus I2C adapter. Unless you own such 
     161  an adapter, you do not need to select this. 
     162 
     163I2C device interface 
     164CONFIG_I2C_CHARDEV 
     165  Here you find the drivers which allow you to use the i2c-* device  
     166  files, usually found in the /dev directory on your system. They 
     167  make it possible to have user-space programs use the I2C bus. 
     168 
     169EOF 
     170    } 
     171    print OUTPUT; 
     172  } 
     173  close INPUT; 
     174  close OUTPUT; 
     175  print_diff $package_root,$kernel_root,$kernel_file,$package_file; 
     176} 
     177 
     178# $_[0]: i2c package root (like /tmp/i2c) 
     179# $_[1]: Linux kernel tree (like /usr/src/linux) 
    95180sub gen_Makefile 
    96181{