* [gentoo-user] Append string on Kernel builds
@ 2009-01-16 20:43 reader
2009-01-16 20:58 ` Dirk Heinrichs
2009-01-20 14:11 ` [gentoo-user] " Neil Bothwick
0 siblings, 2 replies; 9+ messages in thread
From: reader @ 2009-01-16 20:43 UTC (permalink / raw
To: gentoo-user
In the first section during a `makeconfig' session, there is a line
(the second one) that says:
Local Version - append to kernel release
I like to use that and put `-$MYHOST' as string. I wondered if there
is any way to set a numericly incrementing string. Maybe some trick
syntax that can go in that spot?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Append string on Kernel builds
2009-01-16 20:43 [gentoo-user] Append string on Kernel builds reader
@ 2009-01-16 20:58 ` Dirk Heinrichs
2009-01-17 0:46 ` Norberto Bensa
2009-01-17 1:36 ` [gentoo-user] " reader
2009-01-20 14:11 ` [gentoo-user] " Neil Bothwick
1 sibling, 2 replies; 9+ messages in thread
From: Dirk Heinrichs @ 2009-01-16 20:58 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 527 bytes --]
Am Freitag, 16. Januar 2009 21:43:56 schrieb reader@newsguy.com:
> In the first section during a `makeconfig' session, there is a line
> (the second one) that says:
>
> Local Version - append to kernel release
>
> I like to use that and put `-$MYHOST' as string. I wondered if there
> is any way to set a numericly incrementing string. Maybe some trick
> syntax that can go in that spot?
The build system does that automatically as long as you don't "make mrproper",
see "uname -a" output.
HTH...
Dirk
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Append string on Kernel builds
2009-01-16 20:58 ` Dirk Heinrichs
@ 2009-01-17 0:46 ` Norberto Bensa
2009-01-17 1:36 ` [gentoo-user] " reader
1 sibling, 0 replies; 9+ messages in thread
From: Norberto Bensa @ 2009-01-17 0:46 UTC (permalink / raw
To: gentoo-user
On Friday January 16 2009 18:58:55 Dirk Heinrichs wrote:
> The build system does that automatically as long as you don't "make
> mrproper",
You can backup .version
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Append string on Kernel builds
2009-01-16 20:58 ` Dirk Heinrichs
2009-01-17 0:46 ` Norberto Bensa
@ 2009-01-17 1:36 ` reader
2009-01-17 12:31 ` Robert Bridge
1 sibling, 1 reply; 9+ messages in thread
From: reader @ 2009-01-17 1:36 UTC (permalink / raw
To: gentoo-user
Dirk Heinrichs <dirk.heinrichs@online.de> writes:
>> I like to use that and put `-$MYHOST' as string. I wondered if there
>> is any way to set a numericly incrementing string. Maybe some trick
>> syntax that can go in that spot?
>
> The build system does that automatically as long as you don't "make mrproper",
> see "uname -a" output.
No.. its not the same as what I'm talking about. When you set the
item in menuconfig:
General Setup/Local Version [...]
The string you set there is appended to that actual build product
like vmlinuz-2.6.26-gentoo-$HOST
The vmlinuz that gets sent to /boot/ when you say `make install' is
named that way, along with the config-XXX and System-XXX that is moved
there.
Keeps things kind of tidy in /boot/ if you are mucking around with
several kernels.
What I asked was if there is some tricky syntax I could use on that
kernel setting that would do: linux-2.6.26-gentoo-$HOST-N
Where N is an incremented number every time I build the kernel without
running `mrproper'.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Append string on Kernel builds
2009-01-17 1:36 ` [gentoo-user] " reader
@ 2009-01-17 12:31 ` Robert Bridge
2009-01-17 14:45 ` Harry Putnam
0 siblings, 1 reply; 9+ messages in thread
From: Robert Bridge @ 2009-01-17 12:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
On Fri, 16 Jan 2009 19:36:42 -0600
reader@newsguy.com wrote:
> What I asked was if there is some tricky syntax I could use on that
> kernel setting that would do: linux-2.6.26-gentoo-$HOST-N
> Where N is an incremented number every time I build the kernel without
> running `mrproper'.
Not quite what you are asking, but would appending a timestamp to the
name work instead? It would pretty much guarantee a different name for
every build.
Just a thought,
RobbieAB.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Append string on Kernel builds
2009-01-17 12:31 ` Robert Bridge
@ 2009-01-17 14:45 ` Harry Putnam
2009-01-18 15:57 ` David Relson
0 siblings, 1 reply; 9+ messages in thread
From: Harry Putnam @ 2009-01-17 14:45 UTC (permalink / raw
To: gentoo-user
Robert Bridge <robert@robbieab.com> writes:
> On Fri, 16 Jan 2009 19:36:42 -0600
> reader@newsguy.com wrote:
>> What I asked was if there is some tricky syntax I could use on that
>> kernel setting that would do: linux-2.6.26-gentoo-$HOST-N
>> Where N is an incremented number every time I build the kernel without
>> running `mrproper'.
>
> Not quite what you are asking, but would appending a timestamp to the
> name work instead? It would pretty much guarantee a different name for
> every build.
A timestamp would be fine. What syntax would I use on the kernel
config item:
inside menuconfig => General Setup/Local Version [...]
to get a timestamp?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Append string on Kernel builds
2009-01-17 14:45 ` Harry Putnam
@ 2009-01-18 15:57 ` David Relson
2009-01-18 17:27 ` Harry Putnam
0 siblings, 1 reply; 9+ messages in thread
From: David Relson @ 2009-01-18 15:57 UTC (permalink / raw
To: gentoo-user
On Sat, 17 Jan 2009 08:45:04 -0600
Harry Putnam wrote:
> Robert Bridge <robert@robbieab.com> writes:
>
> > On Fri, 16 Jan 2009 19:36:42 -0600
> > reader@newsguy.com wrote:
> >> What I asked was if there is some tricky syntax I could use on that
> >> kernel setting that would do: linux-2.6.26-gentoo-$HOST-N
> >> Where N is an incremented number every time I build the kernel
> >> without running `mrproper'.
> >
> > Not quite what you are asking, but would appending a timestamp to
> > the name work instead? It would pretty much guarantee a different
> > name for every build.
>
> A timestamp would be fine. What syntax would I use on the kernel
> config item:
>
> inside menuconfig => General Setup/Local Version [...]
>
> to get a timestamp?
>
How about an external tool? I use sed to fill in LOCALVERSION, e.g.
V=$( date "+%m%d.%H%M" )
cp -p .config .config.old
sed s/LOCALVERSION.*/LOCALVERSION=\"$V\"/ < .config.old > .config
make vmlinux modules modules_install
HTH,
David
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Append string on Kernel builds
2009-01-18 15:57 ` David Relson
@ 2009-01-18 17:27 ` Harry Putnam
0 siblings, 0 replies; 9+ messages in thread
From: Harry Putnam @ 2009-01-18 17:27 UTC (permalink / raw
To: gentoo-user
David Relson <relson@osagesoftware.com> writes:
> How about an external tool? I use sed to fill in LOCALVERSION, e.g.
>
> V=$( date "+%m%d.%H%M" )
> cp -p .config .config.old
> sed s/LOCALVERSION.*/LOCALVERSION=\"$V\"/ < .config.old > .config
>
> make vmlinux modules modules_install
Ahaa ... that looks just like what I'm after... I didn't know about
the env variable LOCALVERSION.
I haven't actually tried this yet but it looks like what I'm after..
Thanks
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Append string on Kernel builds
2009-01-16 20:43 [gentoo-user] Append string on Kernel builds reader
2009-01-16 20:58 ` Dirk Heinrichs
@ 2009-01-20 14:11 ` Neil Bothwick
1 sibling, 0 replies; 9+ messages in thread
From: Neil Bothwick @ 2009-01-20 14:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
On Fri, 16 Jan 2009 14:43:56 -0600, reader@newsguy.com wrote:
> I like to use that and put `-$MYHOST' as string. I wondered if there
> is any way to set a numericly incrementing string. Maybe some trick
> syntax that can go in that spot?
cd /usr/src/linux
echo "-${MYHOST}-" >localversion1
ln -s .version localversion2
The build system adds the contents of any localversion* files it finds,
and it also increments .version.
--
Neil Bothwick
Electrocution, n.:
Burning at the stake with all the modern improvements.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-01-20 14:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16 20:43 [gentoo-user] Append string on Kernel builds reader
2009-01-16 20:58 ` Dirk Heinrichs
2009-01-17 0:46 ` Norberto Bensa
2009-01-17 1:36 ` [gentoo-user] " reader
2009-01-17 12:31 ` Robert Bridge
2009-01-17 14:45 ` Harry Putnam
2009-01-18 15:57 ` David Relson
2009-01-18 17:27 ` Harry Putnam
2009-01-20 14:11 ` [gentoo-user] " Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox