Re: How to retrieve version from kernel source (the right way)?

From: Brice Goglin (Brice.Goglin_at_ens-lyon.org)
Date: 02/09/05

  • Next message: Peter Daum: "Re: 3ware driver (3w-xxxx) in 2.6.10: procfs entry"
    Date:	Wed, 09 Feb 2005 09:22:02 +0100
    To: Michael Renzmann <mrenzmann@web.de>
    
    

    Michael Renzmann a écrit :
    > Then we started to grep VERSION, PATCHLEVEL, SUBLEVEL and EXTRAVERSION
    > from the kernel's Makefile. This failed, since some distributors seem to
    > use shell commands for at least one of those. Example from SuSE 9.1:
    > === cut ===
    > VERSION = 2
    > PATCHLEVEL = 6
    > SUBLEVEL = 5
    > EXTRAVERSION = -$(shell echo $(CONFIG_RELEASE)-$(CONFIG_CFGNAME))
    > === cut ===
    >
    > Newer kernels also allow to set CONFIG_LOCALVERSION in .config.

    And you may also set some "localversion*" files in the source directory.
    Their contents will be added too.

    Brice

    -
    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: Peter Daum: "Re: 3ware driver (3w-xxxx) in 2.6.10: procfs entry"

    Relevant Pages

    • [patch 1/1] uml: no extraversion in arch/um/Makefile for mainline
      ... separate patches; also, they should set it in the main Makefile, not elsewhere ... -# Recalculate MODLIB to reflect the EXTRAVERSION changes ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch 03/10] uml: no extraversion in arch/um/Makefile for mainline
      ... also, they should set it in the main Makefile, not elsewhere ... on arch/um/Makefile: it was added because arch/um/Makefile could change the ... -# Recalculate MODLIB to reflect the EXTRAVERSION changes ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux 2.6.2 aka "Feisty Dunnart"
      ... > NAME=Feisty Dunnart ... > Its own line in the Makefile, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: makeing a loadable module
      ... > So whats the gcc command line to make just a bare, ... Create a small Makefile: ... configuration of the kernel. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Things that Longhorn seems to be doing right
      ... > first is a filename lookup. ... > better search tools for files in a filesystem, ... > filesystem) in a Makefile as a source file. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)