Skip to contentSkip to conversation

(OT) Re: Compiling sg.o only (2.4.20)

DISCUSSION [email protected] 3 participants 3 messages Sep 19, 2003

lore
Share & tools
lore
#0 lore raw

What does EXTRAVERSION do?

Quoted 5 lines · -- pa3gcu <[email protected]> wrote:

edit the Makefile change line 4 from;
EXTRAVERSION =
to
EXTRAVERSION = -1
save file;

________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 8 lines · At 12:10 AM 9/19/2003 +0000, [email protected] wrote:

What does EXTRAVERSION do?

Quoted 5 lines · -- pa3gcu <[email protected]> wrote:

edit the Makefile change line 4 from;
EXTRAVERSION =
to
EXTRAVERSION = -1
save file;

It adds another "layer" of naming to the kernel. For example, if the kernel is 2.4.21, and you edit the Makefile to read
EXTRAVERSION=-mykernel

then the compiled kernel will think its name is 2.4.21-mykernel . The kernel's "true" name, that is, not the name of the file that holds the kernel.

This affects some minor things, like what the kernel reports in response to "uname -a", and some bigger things, like the name of the directory in which it looks for modules. This last one probably matters to you ... I don't actually recall why Richard made this suggestion.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 14 lines · Ray Olszewski
Quoted 8 lines · At 12:10 AM 9/19/2003 +0000, [email protected] wrote:

What does EXTRAVERSION do?

Quoted 5 lines · -- pa3gcu <[email protected]> wrote:

edit the Makefile change line 4 from;
EXTRAVERSION =
to
EXTRAVERSION = -1
save file;

It adds another "layer" of naming to the kernel. For example, if the kernel is 2.4.21, and you edit the Makefile to read
EXTRAVERSION=-mykernel

Quoted 8 lines

then the compiled kernel will think its name is 2.4.21-mykernel . The kernel's "true" name, that is, not the name of the file that holds the kernel.

This affects some minor things, like what the kernel reports in response to "uname -a", and some bigger things, like the name of the directory in which it looks for modules. This last one probably matters to you ... I don't actually recall why Richard made this suggestion.

I suggested it because i consider it the done thing to do when compiling a kernel-version-source which is running on the system.
I advised it to Chuck because if he were to recompile his kernel as i suggested and do it without an EXTRAVERSION defined and he made a mistake during the configuration and or compiling stage which whent unnoticed and he copied the new kernel over the old one overwrote the old modules or mixed new or old modules toghter in the same modules directory, then he would possable blame ME for rendering his system unbootable (at the worst).

This way you end up with a new kernel and an old one if all went well they are then both bootable.

Signature · 15 lines
If the Linux community is a bunch of theives because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs