You are not logged in.

#1 2011-05-10 23:36:34

matse
Member
Registered: 2011-04-27
Posts: 299

[SOLVED] Compiling custom kernel - headers?

Hello,
I want to compile my own kernel from kernel.org according to this tutorial (with method 2 - makepkg and pacman):
https://wiki.archlinux.org/index.php/Ke … rom_Source

And I have one question:
Is it correct, that with the PKGBUILD in this tutorial no kernel headers are installed if I build the package in my home directory?

I guess I need the kernel-headers to compile my own catalyst and virtualbox modules, so would it work if I extract the kernel sources to /usr/src/ and build the package from there or is there a better way to achieve that?

Thanks,
matse

Last edited by matse (2011-05-16 22:23:26)

Offline

#2 2011-05-10 23:42:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [SOLVED] Compiling custom kernel - headers?

Nothing is installed if you build it in your home directory.  At the successful conclusion of makepkg, there will be three packages in your directory.  The Kernel, the Headers, and the Documentation.
Use pacman -U to install the kernel and, optionally, the other two.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-05-11 08:05:52

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [SOLVED] Compiling custom kernel - headers?

Thanks for your reply, I will try it when I have spare time in the next few days,
matse

Offline

#4 2011-05-11 18:34:06

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [SOLVED] Compiling custom kernel - headers?

So I just compiled the kernel but there is just one package in the directory "kernel26-vanilla-2.6.39.1-1-x86_64.pkg.tar.xz" and no header, docs or src package, any ideas?
matse

Offline

#5 2011-05-14 17:55:53

hwkiller
Member
Registered: 2009-07-21
Posts: 56

Re: [SOLVED] Compiling custom kernel - headers?

If you used that PKGBUILD in the wiki, then the headers were not built.

Use the PKGBUILD found in /var/abs/core/kernel26, assuming you have abs.  It needs to have a line like this:
pkgname=('kernel26-custom' 'kernel26-headers-custom')
Then you need to go down to the package() entries and change the titles to kernel26-custom and kernel26-headers-custom, respectively.

Offline

#6 2011-05-16 22:23:02

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [SOLVED] Compiling custom kernel - headers?

Hi,
thanks for your reply, I used your proposed PKGBUILD as basis for a own one, because the PKGBUILD there doesn't work with the vanilla kernel out of the box - it wants to copy files that are not there. Now I have adaptet it to my needs and it runs pretty fine, it lasts about ten minutes to compile my own kernel whereas the original arch one needed over one hour to compile.
So thanks for the help,
matse

Offline

Board footer

Powered by FluxBB