On Sun, 01 Feb 2009 12:31:27 -0600, Harry Putnam wrote:

> I'm a little confused here... what exactly is in .version?  Say if I
> wanted to identify the kernel as belonging to a specific machine.
> HOST is vm23.  Now if I wanted to have an incrementing version string
> that included that host name what would I need in .version and how
> does the incrementing work?
> 
> Do you mean 1 is added to string each time you call make?  Can you
> show an example of this?
> 
> Does .version need to reside in same level as .config?  Will a 
> `make clean' or `make mrproper'... destroy it? 

cd /usr/src/linux
echo "$(hostname)-" >localversion1
ln -s .version localversion2

will give each kernel a name with the hostname and version
added. .version is automatically incremented each time you run make.

Make mrproper will most likely remove it, but I've not used that since
2.4.


-- 
Neil Bothwick

Work is the curse of the partying class!

Attachment: signature.asc
Description: PGP signature

Reply via email to