1 |
On Mon, 02 Feb 2009 09:22:29 -0600 |
2 |
Harry Putnam wrote: |
3 |
|
4 |
> Neil Bothwick <neil@××××××××××.uk> writes: |
5 |
> |
6 |
> > cd /usr/src/linux |
7 |
> > echo "$(hostname)-" >localversion1 |
8 |
> > ln -s .version localversion2 |
9 |
> > |
10 |
> > will give each kernel a name with the hostname and version |
11 |
> > added. .version is automatically incremented each time you run make. |
12 |
> |
13 |
> I'm sorry for being so dense but that isn't clear to my pea brain |
14 |
> either. |
15 |
> |
16 |
> The idea from above is to end up with: |
17 |
> |
18 |
> localversion1 |
19 |
> localversion2 -> .version |
20 |
> .version |
21 |
> |
22 |
> Where: |
23 |
> localversion1 contains HOSTNAME |
24 |
> .version contains number `N' (current build) |
25 |
> localversion2 is symlinked to .version |
26 |
> |
27 |
> All under /usr/src/linux ? |
28 |
> |
29 |
> If you're sick of trying to explain it to me... maybe a pointer to the |
30 |
> documentation? |
31 |
> |
32 |
|
33 |
With LOCALVERSION="-aaa" in linux/.config |
34 |
and "-bbb-" in linux/localversion1 |
35 |
and "3" in linux/.version |
36 |
and a symlink from localversion2 to .version |
37 |
running "genkernel all" produces a kernel named "linux-2.6.28-bbb-3-aaa" |