1 |
On Saturday 13 June 2009 16:27:48 Harry Putnam wrote: |
2 |
> Setting a version to local kernel builds has been discussed here so |
3 |
> sorry to bang on it some more. |
4 |
> |
5 |
> I found information here from a previous thread and kept one of the |
6 |
> answers but finding now that I don't really understand it. |
7 |
> |
8 |
> Or am doing the proceedure wrong. |
9 |
> |
10 |
> It was Neil B's post: |
11 |
> |
12 |
> From: Neil Bothwick <neil@××××××××××.uk> |
13 |
> Subject: Re: Append string on Kernel builds |
14 |
> Newsgroups: gmane.linux.gentoo.user |
15 |
> To: gentoo-user@l.g.o |
16 |
> Date: Tue, 20 Jan 2009 14:11:22 +0000 |
17 |
> Message-ID: <20090120141122.46b8362c@krikkit> |
18 |
> |
19 |
> On Fri, 16 Jan 2009 14:43:56 -0600, reader@×××××××.com wrote: |
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? |
56 |
|
57 |
I only see two thing: |
58 |
|
59 |
Did you set both |
60 |
|
61 |
() Local version - append to kernel release |
62 |
[ ] Automatically append version information to the version string |
63 |
|
64 |
In "General setup"? |
65 |
|
66 |
Second, you appear to have used a file called "localverion1" instead of |
67 |
"localversion1" |
68 |
|
69 |
Is that a real mistake, or just a typo in your mail? |
70 |
|
71 |
|
72 |
-- |
73 |
alan dot mckinnon at gmail dot com |