Gentoo Archives: gentoo-user

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Switching from Genkernel to manual build
Date: Wed, 01 Aug 2007 20:34:30
Message-Id: 8cd1ed20708011328k1d098dfbh7f5f723cf1b5518b@mail.gmail.com
In Reply to: Re: [gentoo-user] Switching from Genkernel to manual build by Volker Armin Hemmann
1 On 8/2/07, Volker Armin Hemmann <volker.armin.hemmann@××××××××××××.de> wrote:
2 > On Mittwoch, 1. August 2007, Kent Fredric wrote:
3 > > On 8/1/07, Dan Cowsill <danthehat@×××××.com> wrote:
4 > >
5 > >
6 > > /etc/genkernel.conf
7 > >
8 > >
9 > > # Run 'make menuconfig' before compiling this kernel?
10 > > MENUCONFIG="no"
11 > >
12 > > # Run 'make clean' before compilation?
13 > > # If set to NO, implies MRPROPER WILL NOT be run
14 > > # Also, if clean is NO, it won't copy over any configuration
15 > > # file, it will use what's there.
16 > > CLEAN="no"
17 > >
18 > > # Run 'make mrproper' before configuration/compilation?
19 > > MRPROPER="no"
20 > >
21 > > # Save the new configuration in /etc/kernels upon
22 > > # successfull compilation
23 > > SAVE_CONFIG="yes"
24 > >
25 > > # Debug Level
26 > > DEBUGLEVEL=5
27 > >
28 > > Set those, and then I recommend just stay with using genkernel, it
29 > > basically converts genkernel from a kernel configurator, to merely a
30 > > nice automated build-and-install script.
31 > >
32 > >
33 > > that way you can configure your kernel custome like usual, and then just
34 > > genkernel --kernname=somenickname all
35 > >
36 > > and go away and leave it and it will take care of the rest :)
37 > >
38 > > --
39 > > Kent
40 > > ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x|
41 > > print "enNOSPicAMreil kdrtf@×××.com"[(2*x)..(2*x+1)]}'
42 >
43 > cp .config linux/
44 > make oldconfig
45 > make all modules_install install
46 >
47 > that is all that is needed to build a kernel without that genkernel stuff.
48 >
49 > You can put that in a script or in one line with some && in between, if you
50 > want.
51 >
52 > Results in sexy /boot like this:
53 > ls -lh /boot/
54 > insgesamt 7,1M
55 > lrwxrwxrwx 1 root root 1 20. Apr 2006 boot -> .
56 > lrwxrwxrwx 1 root root 36 29. Jul 11:16 config ->
57 > config-2.6.22.1-cfs-v19reiser4libata
58 > -rw-r--r-- 1 root root 36K 29. Jul 01:50 config-2.6.22.1-cfs-v19reiser4
59 > -rw-r--r-- 1 root root 34K 29. Jul 11:16 config-2.6.22.1-cfs-v19reiser4libata
60 > -rw-r--r-- 1 root root 34K 29. Jul 03:19
61 > config-2.6.22.1-cfs-v19reiser4libata.old
62 > lrwxrwxrwx 1 root root 40 29. Jul 11:16 config.old ->
63 > config-2.6.22.1-cfs-v19reiser4libata.old
64 > drwxr-xr-x 2 root root 1,0K 19. Jun 03:18 grub
65 > drwx------ 2 root root 12K 24. Mär 2003 lost+found
66 > drwxr-xr-x 2 root root 1,0K 11. Jun 19:27 memtest86plus
67 > lrwxrwxrwx 1 root root 40 29. Jul 11:16 System.map ->
68 > System.map-2.6.22.1-cfs-v19reiser4libata
69 > -rw-r--r-- 1 root root 934K 29. Jul 01:50 System.map-2.6.22.1-cfs-v19reiser4
70 > -rw-r--r-- 1 root root 883K 29. Jul 11:16
71 > System.map-2.6.22.1-cfs-v19reiser4libata
72 > -rw-r--r-- 1 root root 883K 29. Jul 03:19
73 > System.map-2.6.22.1-cfs-v19reiser4libata.old
74 > lrwxrwxrwx 1 root root 44 29. Jul 11:16 System.map.old ->
75 > System.map-2.6.22.1-cfs-v19reiser4libata.old
76 > lrwxrwxrwx 1 root root 37 29. Jul 11:16 vmlinuz ->
77 > vmlinuz-2.6.22.1-cfs-v19reiser4libata
78 > -rw-r--r-- 1 root root 1,6M 29. Jul 01:50 vmlinuz-2.6.22.1-cfs-v19reiser4
79 > -rw-r--r-- 1 root root 1,4M 29. Jul 11:16
80 > vmlinuz-2.6.22.1-cfs-v19reiser4libata
81 > -rw-r--r-- 1 root root 1,4M 29. Jul 03:19
82 > vmlinuz-2.6.22.1-cfs-v19reiser4libata.old
83 > lrwxrwxrwx 1 root root 41 29. Jul 11:16 vmlinuz.old ->
84 > vmlinuz-2.6.22.1-cfs-v19reiser4libata.old
85 >
86 > the symlinks are all created by install.
87 > just have a vmlinuz and a vmlinuz.old entry in menu.lst and you are always
88 > safe.
89 > --
90 > gentoo-user@g.o mailing list
91 >
92 >
93
94
95 Yeah, but 1: no INITRD is built,
96 2: using genkernel build script will automatically add new entries in grub.conf
97 ie:
98
99 zcat /proc/config.gz > .config
100 make oldconfig
101 genkernel --kernname=sexy all && reboot
102
103 ;)
104 --
105 Kent
106 ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x|
107 print "enNOSPicAMreil kdrtf@×××.com"[(2*x)..(2*x+1)]}'
108 --
109 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Switching from Genkernel to manual build Neil Bothwick <neil@××××××××××.uk>