﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
603	Add EXTRAVERSION to Kernel Build Instructions	bdubbs@…	lfs-book@…	"When we build the kernel, we are overlooking a technique that could help a lot
of users:  using the EXTRAVERSION variable in the kernel's main Makefile.

VERSION=2.4.22
DATE=`date +-%Y%m%d`
make CC=/opt/gcc-2.95.3/bin/gcc EXTRAVERSION=-lfs$DATE dep 
make CC=/opt/gcc-2.95.3/bin/gcc EXTRAVERSION=-lfs$DATE bzImage 
make CC=/opt/gcc-2.95.3/bin/gcc EXTRAVERSION=-lfs$DATE modules 
make CC=/opt/gcc-2.95.3/bin/gcc EXTRAVERSION=-lfs$DATE modules_install

cp arch/i386/boot/bzImage /boot/linux-${VERSION}-lfs${DATE} 
cp System.map /boot/System.map-${VERSION}-lfs${DATE}


Add 

<note>By using the EXTRAVERSION, the you can do multiple builds of 
the same kernel version without overwriting previous builds.  
The modules are preserved.  Also, the version number is embedded 
so that <userinput>uname -r</userinput> gives the  matching value 
and allows the system to automatically find its first choice for 
<filename>System.map</filename> &mdash;
<filename>System.map-`uname -r`.</filename></note>"	defect	closed	high		Book	CVS	normal	wontfix		
