#519: Consider /proc/config.gz
---------------------------------+------------------------------------------
      Reporter:  mrenzmann       |       Owner:                                 
     
          Type:  enhancement     |      Status:  new                            
     
      Priority:  minor           |   Milestone:  version 1.0.0 - first stable 
release
     Component:  madwifi: other  |     Version:  trunk                          
     
    Resolution:                  |    Keywords:                                 
     
Patch_attached:  0               |  
---------------------------------+------------------------------------------
Comment (by kelmo):

 Hi Mike,

 I attached an outrageously inefficient (lots of grepping instead of
 sourcing) proof-of-concept patch that would use /proc/config.gz as
 KERNELCONF when it exists and is provided by the same kernel as identified
 by the KERNELRELEASE determination code. This would be used regardless if
 an actual KERNELCONF exists for that kernel, as /proc/config.gz *should*
 always reflect the config of the kernel in which it is contained. However,
 this kernel version check relies on the fact that "# Linux kernel version:
 *" is actually in all /proc/config.gz's.

 Alternatively, I guess you could zcat /proc/config.gz, source it, and then
 clean up, but this seemed hackish and problematic, and made me feel that
 inefficiency may be a better trade-off.

 The patch also addresses the folowing minor/trivial issues:
  * that the configcheck and sanitycheck makefile targets should be folded
 into one
  * make info should first check that all requirements are satisfied
  * checking for KERNELCONF in Makefile is useless, because Makefile.inc
 already does that
  * we are not checking wireless.h even though a comment suggests we are
  * the kernel configuration option checks are not commented
  * there is some useless crap still laying about in the Makefile

 I think these issues should be addressed in a seperate patch, if you agree
 with them.

 Kel.

-- 
Ticket URL: <http://madwifi.org/ticket/519>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity

Reply via email to