Skip to contentSkip to conversation

Correct EXTRAVERSION in kernel Makefile

DISCUSSION Niraj Tolia 2 participants 3 messages Jun 28, 2004 – Jun 29, 2004

lore
Share & tools
lore
#0 lore raw

Would it be possible to have the correct EXTRAVERSION value (-xen0 and -xenU) in the Makefiles for the different kernels that are built by Xen? Makefiles for drivers that are not in the kernel tree often try to grok 'linux-src/Makefile' to learn what version of kernel was compiled.

I personally hit the problem when trying to compile the Cisco iSCSI driver for Xen.

Thanks,
Niraj

Signature · 8 lines
http://www.cs.cmu.edu/~ntolia


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
#1 lore raw
Quoted 5 lines

Would it be possible to have the correct EXTRAVERSION value (-xen0 and -xenU) in the Makefiles for the different kernels that are built by Xen? Makefiles for drivers that are not in the kernel tree often try to grok 'linux-src/Makefile' to learn what version of kernel was compiled.

EXTARVAERSION is overridden by the arch/xen/Makefile using the same technique useed by UML and various other architectures.

Quoted 2 lines

I personally hit the problem when trying to compile the Cisco iSCSI driver for Xen.

I can't recall having to do anything special to build the Cisco iSCSI initiator.

Ian

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#2 lore raw
Quoted 7 lines
Quoted 3 lines

I personally hit the problem when trying to compile the Cisco iSCSI driver for Xen.

I can't recall having to do anything special to build the Cisco iSCSI initiator.

The Makefile for the Cisco iSCSI initiator (3.4.3) uses awk and sed to extract EXTRAVERSION from the Makefile. It then spits out warnings on screen as 'uname -r' does not match what it gets from the Makefile.

On close inspection, it turns out that the warnings are just noise and things will work if you are careful. So I guess we are ok for now.

Niraj

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com