1 |
On Sat, 17 Jan 2009 08:45:04 -0600 |
2 |
Harry Putnam wrote: |
3 |
|
4 |
> Robert Bridge <robert@××××××××.com> writes: |
5 |
> |
6 |
> > On Fri, 16 Jan 2009 19:36:42 -0600 |
7 |
> > reader@×××××××.com wrote: |
8 |
> >> What I asked was if there is some tricky syntax I could use on that |
9 |
> >> kernel setting that would do: linux-2.6.26-gentoo-$HOST-N |
10 |
> >> Where N is an incremented number every time I build the kernel |
11 |
> >> without running `mrproper'. |
12 |
> > |
13 |
> > Not quite what you are asking, but would appending a timestamp to |
14 |
> > the name work instead? It would pretty much guarantee a different |
15 |
> > name for every build. |
16 |
> |
17 |
> A timestamp would be fine. What syntax would I use on the kernel |
18 |
> config item: |
19 |
> |
20 |
> inside menuconfig => General Setup/Local Version [...] |
21 |
> |
22 |
> to get a timestamp? |
23 |
> |
24 |
|
25 |
How about an external tool? I use sed to fill in LOCALVERSION, e.g. |
26 |
|
27 |
V=$( date "+%m%d.%H%M" ) |
28 |
cp -p .config .config.old |
29 |
sed s/LOCALVERSION.*/LOCALVERSION=\"$V\"/ < .config.old > .config |
30 |
|
31 |
make vmlinux modules modules_install |
32 |
|
33 |
HTH, |
34 |
|
35 |
David |