Kernel source of an installed vanilla kernel (FC3)

From: Ilja Sekler (ilja_sekler__at_gmx.de)
Date: 04/26/05


Date: Tue, 26 Apr 2005 22:43:53 +0200

Hi,

using the method described in
http://crab-lab.zool.ohiou.edu/kevin/kernel-compilation-tutorial-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



Relevant Pages

  • State of userland headers
    ... When I first created llh, it was a couple of weeks before 2.6.0 came out. ... had a need for those headers, since a new version of PLD distro was supposed ... LLH as it is is not and never will be mergable into mainline kernel. ... llh for the most popular archs and figure out how to build all the various ...
    (Linux-Kernel)
  • Re: State of userland headers
    ... to get changes of this nature into glibc in particular, ... If the headers ... the kernel. ... This would mean that the kabi headers have no ...
    (Linux-Kernel)
  • Re: [PATCH] make headers_install kbuild target.
    ... There are many other users that poke direct in the kernel source also. ... The gentoo people have been collecting patches to clean up the headers: ... For kernel space, you can do it incrementally, since the whole kabi/ ...
    (Linux-Kernel)
  • Re: [RFC] Splitting kernel headers and deprecating __KERNEL__
    ... > just make one thing clear: the kernel headers are for the kernel, ... userland must duplicate the contents of headers in which the kernel ... defines the kerneluserland ABI, tracking changes in them in the ...
    (Linux-Kernel)
  • Re: [RFC] Splitting out kernel<=>userspace ABI headers
    ... >> architecture broke the UML build. ... >> to clone and maintain my versions of all the other arch headers. ... >> usable and userspace unusable pieces is the right thing for UML. ... The kernel needs to export its ABI in a way that ...
    (Linux-Kernel)