Mombu the GNU Linux Forum

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Kernel source of an installed vanilla kernel (FC3)
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 4th November 12:47
ilja sekler
External User
 
Posts: 1
Default Kernel source of an installed vanilla kernel (FC3)



Hi,

using the method described in
http://crab-lab.zool.ohiou.edu/kevin...-en/steps.html
to build customized kernels from FC3' kernel src.rpms, I faced
unexpected problems with 2.6.11-1.14_FC3. So I downloaded, configured,
compiled and installed the vanilla kernel 2.6.11.7 instead. Works like a
charm. Unfortunately, the huge kernel build directory (over 400MB
before, 231MB after "make clean") occupies really a lot of HDD space. It
contains - what else - the complete kernel source while the directory
/lib/modules/`uname -r`/build of Fedora's own kernel RPMs contains only
headers and makefiles.

Is it safe to free the disc space and to delete everything in the kernel
build tree except of headers, makefiles and Kconfig files? (I would like
still to be able to build applications and external modules from source
when needed.) Is there a command to do it automatically?

I'm sorry if the question is naive; my Linux experience is still very
limited.

Thanks i.a.,

Ilja
  Reply With Quote


 


2 8th November 09:12
ilja sekler
External User
 
Posts: 1
Default Kernel source of an installed vanilla kernel (FC3)



It works :-) Though /lib/modules/$(uname -r)/build is simply a symlink
to /usr/src/linux-2.6.11.7. But I had deleted all *.c files in the
kernel build tree and it still worked.

$ du -ch /usr/src/linux-2.6.11.7/ | grep insgesamt
104M insgesamt

It's acceptable :-)

Thanks a lot!

Cheers

Ilja
  Reply With Quote
Reply


Thread Tools
Display Modes




666