Re: Kernel toplevel makefile

Mike A. Harris (mharris@ican.net)
Thu, 25 Feb 1999 03:35:11 -0500 (EST)


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/