Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Switching from Genkernel to manual build Kent Fredric <kentfredric@×××××.com>