lkml.org 
[lkml]   [1999]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel toplevel makefile
On Wed, 24 Feb 1999, Keith Owens wrote:

>>KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
>>
>>Shouldn't the end be this instead?:
>>
>>$(SUBLEVEL)-$(EXTRAVERSION)
>
>No, a kernel without extraversion would be "2.2.2-". Define
>"EXTRAVERSION = -whatever" instead.

Ahh, right. I never thought of it like that. Perhaps a more
elegant solution would be to test wether EXTRAVERSION were set or
not, and then automatically add a "-" instead.

if [ -z $EXTRAVERSION ] ; then
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)
else
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(EXTRAVERSION)
fi

Something like that... Just an idea...

Take care,
TTYL

--
Mike A. Harris Linux advocate GNU advocate
Computer Consultant Open Source advocate

News for nerds, stuff that matters: http://slashdot.org


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.028 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site