[gentoo-user] Re: Append string on Kernel builds

2009-01-18 Thread Harry Putnam
David Relson  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




Re: [gentoo-user] Re: Append string on Kernel builds

2009-01-18 Thread David Relson
On Sat, 17 Jan 2009 08:45:04 -0600
Harry Putnam wrote:

> Robert Bridge  writes:
> 
> > On Fri, 16 Jan 2009 19:36:42 -0600
> > rea...@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



[gentoo-user] Re: Append string on Kernel builds

2009-01-17 Thread Harry Putnam
Robert Bridge  writes:

> On Fri, 16 Jan 2009 19:36:42 -0600
> rea...@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?




Re: [gentoo-user] Re: Append string on Kernel builds

2009-01-17 Thread Robert Bridge
On Fri, 16 Jan 2009 19:36:42 -0600
rea...@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.


signature.asc
Description: PGP signature


[gentoo-user] Re: Append string on Kernel builds

2009-01-16 Thread reader
Dirk Heinrichs  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'.