You are not logged in.

#1 2005-03-17 10:31:12

geekitus
Member
Registered: 2005-03-14
Posts: 19

PKGBUILD for multi-kernels (choose in 7 kernels patchset )

hi all , i begin with archlinux and my english is too bad , but i want to submit a idea :  a PKGBUILD witch permit to choose between seven  patchsets.

For people who compile often their kernels it ask some questions like :

==> what kernel patchset do you want ???
==> ----------------------------------------
1) love-sources
2) vivid-sources
3) morph-sources
4) nitro-sources
5) ck-sources
6) mm-sources 

each kernels have this custom .config

if it have already extracted : (win some time )

==> Starting build()...
==> the kernel have already been extracted, re-extract ?:  (default : no 2) ) 
==> ----------------------------------------
1) yes
2) no

if you choose yes , the kernel is extracted and re-patched

==> do you want to do make clean ?:  (default : yes 1) )
==> ----------------------------------------
1) yes
2) no
#? 1
==> make clean :
==> do you want the arch logo (not compatible with gensplash! )  ?:  (default : no 2) )
==> ----------------------------------------
1) yes
2) no
#? 1
==> How do you want to configure the kernel
==> ----------------------------------------
==> (for ArchLinux defaults, use 'not_at_all (1)')
==>
1) not_at_all
2) menuconfig
3) xconfig
4) oldconfig
5) config

you can choose to don't do the make clean for quick re-compile, and how to configure your kernel.


you can use your own config :

 if you want to use your kernel config, please rename it to config-perso
----------------------------------------------------------------------------------

if it found a config-perso :

use your kernel config !
-------------------------

and the PKGBUILD is easy to update and esay to see if the patchset use a "-rc" kernel :

#variables à modifier:
#********************
kernel_love=2.6.11
ver_patch_love=love2
kernel_vivid=2.6.11-rc3
ver_patch_vivid=2611rc3vivid1
kernel_morph=2.6.11
ver_patch_morph=patch-$kernel_morph-morph2
kernel_nitro=2.6.11
ver_patch_nitro=patch-$kernel_nitro-nitro1
kernel_ck=2.6.11
ver_patch_ck=patch-$kernel_ck-ck2
kernel_mm=2.6.11
ver_patch_mm=$kernel_mm-mm3
#---------------------------------------

PKGBUILD :
http://home.tele2.fr/geekitus/multi-kernel/PKGBUILD

it's maybe not a good idea , i just want to know what do you think about this ?

Offline

#2 2005-03-17 10:49:13

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

A good idea in theory, but you cannot tie a PKGBUILD to a specific binary any longer. In effect, there would be 5 different binaries for that one PKGBUILD.
Might cause a problem, but I don't know.

If nothing else, that script should prove very useful to people who will need it/want it.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-03-17 11:10:06

geekitus
Member
Registered: 2005-03-14
Posts: 19

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

i create this PKGBUILD to facilitate and customize the compile. Some people like to try some patchsets, and compile and recompile often their kernels. So i think that for a "personal" use , this PKGBUILD can help , no ?

Offline

#4 2005-03-18 05:17:55

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

ummmm - i did a PKGBUILD that works for any patchset you just change the name of the patch source file...how's that?  It's on the wiki

Offline

#5 2005-03-18 06:35:45

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

I just patch it normally, cant be bothered with a PKGBUILD myself.

Offline

#6 2005-03-18 08:12:31

geekitus
Member
Registered: 2005-03-14
Posts: 19

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

dibblethewrecker : humm, i see your wiki and your PKGBUILD , (i copy past it and had my part at the begining of the PKGBUILD smile ) . But it's not a good idea to ask for the make clean and ask if the kernel must be re-extracted ?
(some people don't like don't re-compile all the kernel each times )

iphitus : some newbi ask on #archlinuxfr what's the kernel wich go with what patchset. I think that my PKGBUILD can help for newbi no ?  (or a small wiki wich explain what is the kernel version wich goes with what patchset could help newbi)

but for peoples wko know how to patch, it's sure that my PKGBUILD don't have a big interest (except for re-extract and make clean question)

*i know that makepkg -ef don't re-extract the sources ...

Offline

#7 2005-03-18 08:15:52

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

i think its a good idea actually.

Offline

#8 2005-03-19 10:15:51

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

well, we added a bit to our wiki about patchsets so they can read up and link to them there - the idea about not making clean and reextrating everytime is a good one i guess tho

Offline

#9 2005-03-24 08:23:56

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

I used dibble's PKGBUILD a lot a week or two ago, great work, highly appreciated. The only thing I didn't like was make clean-ing every time. I was doing some testing and was only changing an option or two. Eventually I just went in a commented that part out. I think asking the user would be really helpful though.

Offline

#10 2005-03-24 08:51:36

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

That's easy enough to fix i think.  to be entirely frank - i have never built kernels anyway except via Arch PKGBUILDS - I am not completely clear on the mechanics, options and processes that many users would prefer.  If you do have recommendations, suggestions or contributions please post them in the custom PKGBUILD thread and we can work to incorporate them big_smile

Offline

#11 2005-03-24 09:52:49

geekitus
Member
Registered: 2005-03-14
Posts: 19

Re: PKGBUILD for multi-kernels (choose in 7 kernels patchset )

dible, yes , i agree with you ... it's a better idea to increase the quality of a PKGBUILG than create some PKGBUILG of a bad quality ...

my PKGBUILD was just some suggestions  of idea ...  but sorry to have post on a new post and don't reply in your post about your PKGBUILD

Offline

Board footer

Powered by FluxBB