Re: 2.6.Stable and EXTRAVERSION

From: Andreas Gruenbacher (agruen_at_suse.de)
Date: 03/10/05

  • Next message: Itsuro Oda: "Re: [Fastboot] Re: Query: Kdump: Core Image ELF Format"
    To: "Justin M. Forbes" <jmforbes@linuxtx.org>
    Date:	Thu, 10 Mar 2005 09:25:54 +0100
    
    

    On Wed, 2005-03-09 at 19:53, Justin M. Forbes wrote:
    > With the new stable series kernels, the .x versioning is being added to
    > EXTRAVERSION. This has traditionally been a space for local modification.
    > I know several distributions are using EXTRAVERSION for build numbers,
    > platform and assorted other information to differentiate their kernel
    > releases.

    It's no issue for us. We're using this patch to add in the RPM release
    number:

    Index: linux-2.6.10/Makefile
    ===================================================================
    --- linux-2.6.10.orig/Makefile
    +++ linux-2.6.10/Makefile
    @@ -158,8 +158,11 @@ endif
     LOCALVERSION = $(subst $(space),, \
                    $(shell cat /dev/null $(localversion-files:%~=)) \
                    $(patsubst "%",%,$(CONFIG_LOCALVERSION)))
    +ifneq ($(wildcard $(srctree)/rpm-release),)
    +RPM_RELEASE := -$(shell cat $(srctree)/rpm-release)
    +endif
     
    -KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)
    +KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(RPM_RELEASE)$(LOCALVERSION)
     
     # SUBARCH tells the usermode build what the underlying arch is. That is set
     # first, and if a usermode build is happening, the "ARCH=um" on the command

    Cheers,

    -- 
    Andreas Gruenbacher <agruen@suse.de>
    SUSE Labs, SUSE LINUX GMBH
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Itsuro Oda: "Re: [Fastboot] Re: Query: Kdump: Core Image ELF Format"

    Relevant Pages

    • Re: 2.6.Stable and EXTRAVERSION
      ... > With the new stable series kernels, the .x versioning is being added to ... > I know several distributions are using EXTRAVERSION for build numbers, ... And don't even suggest tell Linus to start calling mainline releases ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.Stable and EXTRAVERSION
      ... > With the new stable series kernels, the .x versioning is being added to ... > I know several distributions are using EXTRAVERSION for build numbers, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.Stable and EXTRAVERSION
      ... >> With the new stable series kernels, the .x versioning is being added to ... >> I know several distributions are using EXTRAVERSION for build numbers, ... since it means one less kernel patch to port. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.Stable and EXTRAVERSION
      ... > With the new stable series kernels, the .x versioning is being added to ... > I know several distributions are using EXTRAVERSION for build numbers, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: How to retrieve version from kernel source (the right way)?
      ... > Then we started to grep VERSION, PATCHLEVEL, SUBLEVEL and EXTRAVERSION ... > from the kernel's Makefile. ... since some distributors seem to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)