Re: compiling (or rather, failing to compile) a kernel
On Sun, Nov 11, 2012 at 1:11 PM, Martin Steigerwald <Martin@lichtvoll.de> wrote:
> Am Sonntag, 11. November 2012 schrieb Tom H:
>> I've also never seen any Debian documentation pointing to building a
>> kernel elsewhere than in "/usr/src/". It's been the RHEL/Fedora way
>> for years though.
> That doesn´t make it a good practice.
> I still think using a directory in home is more suitable and am following
> recommendation of Greg Kroah-Hartman and others there as well as the
> official recommendation in kernel README:
> INSTALLING the kernel source:
> - If you install the full sources, put the kernel tarball in a
> directory where you have permissions (eg. your home directory) and
> unpack it:
> gzip -cd linux-3.X.tar.gz | tar xvf -
> bzip2 -dc linux-3.X.tar.bz2 | tar xvf -
> Replace "X" with the version number of the latest kernel.
> Do NOT use the /usr/src/linux area! This area has a (usually
> incomplete) set of kernel headers that are used by the library header
> files. They should match the library, and not get messed up by
> whatever the kernel-du-jour happens to be.
> Granted, you can just build in a sub directory of /usr/src, but still I
> would not clog that directory with my own manual builds and just leave it
> to the package manager, module-assistant, possibly dkms.
Thanks for the README snippet above. I'd never seen it before.
That RHEL/Fedora dont' use "/usr/src" might, on its own, not make it
good practice, but since they're following kernel documentation
perhaps it does!