You are not logged in.

#1 2010-09-11 15:52:17

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Building the kernel from Arch's template - is it possible?

The thought is: to build my own kernel for Arch but do not set all the settings manually; get all the settings just as Arch developers do and just edit some of them and then build. Maybe a couple of changes.

Is there any possibility to do this?

Last edited by Mr. Alex (2010-09-11 15:53:01)

Offline

#2 2010-09-11 16:08:34

xvello
Member
Registered: 2010-05-15
Posts: 81
Website

Re: Building the kernel from Arch's template - is it possible?

Hi

You can retreive the config file for the running kernel in /proc/config.gz

Offline

#3 2010-09-11 16:18:01

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Building the kernel from Arch's template - is it possible?

Wow... Thousands of options I believe... Can I paste 'em automatically when building kernel?

Offline

#4 2010-09-11 16:34:01

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Building the kernel from Arch's template - is it possible?

Yes, by using

zcat /proc/config.gz > /path/to/your/config/in/sources
make oldconfig

in your PKGBUILD. See other customized kernels for the details.

Have fun. smile

Offline

#5 2010-09-11 17:02:21

codycarey
Member
Registered: 2009-08-21
Posts: 154

Re: Building the kernel from Arch's template - is it possible?

I always like to use 'make oldconfig' to bring the original config file up to date and then use another option (make menuconfig, xconfig, nconfig, etc) to do further editing.

Also, make sure you're installing your custom kernel the 'Arch' way, http://wiki.archlinux.org/index.php/Ker … 26_Package

Last edited by codycarey (2010-09-11 17:02:39)

Offline

#6 2010-09-11 18:02:24

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Building the kernel from Arch's template - is it possible?

Mr. Alex wrote:

The thought is: to build my own kernel for Arch but do not set all the settings manually; get all the settings just as Arch developers do and just edit some of them and then build. Maybe a couple of changes.

Is there any possibility to do this?

Sure. Just get the latest PKGBUILD from ABS and add in 'make menuconfig' in the appropriate spot, makepkg, and pacman install it.

Offline

#7 2010-09-12 06:00:28

steve_v
Member
Registered: 2006-02-11
Posts: 80

Re: Building the kernel from Arch's template - is it possible?

if you have yaourt installed, it can even retrieve the pkgbuild, patches etc for you :-) just create a directory & run yaourt -G kernel26 in it.

Offline

#8 2010-09-12 07:30:06

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Building the kernel from Arch's template - is it possible?

PKGBUILD? ARCH kernel? Why not use the one from http://kernel.org/ ?

Offline

#9 2010-09-12 07:53:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Building the kernel from Arch's template - is it possible?

Uhmm... yes, you have to get the sources from kernel.org. People are suggesting you use a PKGBUILD so you can create an Arch package for your custom kernel.

Full details in the wiki, already linked above.

Offline

Board footer

Powered by FluxBB