View Single Post

   
  #2 (permalink)  
Old 01-18-2008, 05:52 AM
John-Paul Stewart
 
Posts: n/a
Default Re: Cant find config.h [suse64 v9.2]

Marshall Kiam-Laine wrote:
> trying to load a new Ethernet source driver with MAKE
> INSTALL
> on a directory containing "makefile" [so apparently dont
> need to do ./config again ?]
>
> but it said "err 37 sources not configured, cant find
> config.h"
>
> the kernel-sources *are* loaded, so where should
> config.h be ?


config.h doesn't exist until you do 'make config' (or oldconfig, or
menuconfig, or xconfig) in the kernel source tree. It is *not*
sufficient to install the kernel sources; you need a valid
configuration, too.

If you're using a distro-supplied kernel (i.e., not one you've compiled
yourself) look for their config file is /proc/config.gz or
/boot/config.gz. Gunzip it to /usr/src/linux/.config (assuming the
kernel sources are installed in /usr/src/linux), cd to /usr/src/linux
and do 'make oldconfig'. You'll now have a config.h file matching your
currently running kernel.

If you're using a custom kernel, you should still have your own .config
file around. Also, remember *do not* do 'make clean' after builing your
own kernel if you have to build other modules outside the kernel source
tree. 'make clean' will (among other things) get rid of your config.h.
Reply With Quote