1 |
Setting a version to local kernel builds has been discussed here so |
2 |
sorry to bang on it some more. |
3 |
|
4 |
I found information here from a previous thread and kept one of the |
5 |
answers but finding now that I don't really understand it. |
6 |
|
7 |
Or am doing the proceedure wrong. |
8 |
|
9 |
It was Neil B's post: |
10 |
|
11 |
From: Neil Bothwick <neil@××××××××××.uk> |
12 |
Subject: Re: Append string on Kernel builds |
13 |
Newsgroups: gmane.linux.gentoo.user |
14 |
To: gentoo-user@l.g.o |
15 |
Date: Tue, 20 Jan 2009 14:11:22 +0000 |
16 |
Message-ID: <20090120141122.46b8362c@krikkit> |
17 |
|
18 |
On Fri, 16 Jan 2009 14:43:56 -0600, reader@×××××××.com wrote: |
19 |
|
20 |
> I like to use that and put `-$MYHOST' as string. I wondered if |
21 |
> there is any way to set a numericly incrementing string. Maybe |
22 |
> some trick syntax that can go in that spot? |
23 |
|
24 |
cd /usr/src/linux |
25 |
echo "-${MYHOST}-" >localversion1 |
26 |
ln -s .version localversion2 |
27 |
|
28 |
The build system adds the contents of any localversion* files it |
29 |
finds, and it also increments .version. |
30 |
|
31 |
|
32 |
But when I try this I get only the $MYHOST part (in this case |
33 |
host=reader) and not the increment. |
34 |
|
35 |
So for linux-2.6.30-gentoo-r1 |
36 |
|
37 |
and in /usr/src/linux |
38 |
cat localverion1: |
39 |
_reader_ |
40 |
|
41 |
Cat .version: |
42 |
1 |
43 |
And the symlink |
44 |
ls -l localversion2 |
45 |
lrwxrwxrwx [...] Jun 12 18:01 localversion2 -> .version |
46 |
I get this naming after a build: |
47 |
|
48 |
vimlinuz-2.6.30-gentoo-r1_reader_ |
49 |
|
50 |
No version gets appended. |
51 |
|
52 |
I understood it should have also append the numeric version and |
53 |
increment it each time I build that kernel. |
54 |
|
55 |
Anyone see where I'm dorking this up? |