aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2006-09-12 12:38:19 -0400
committerSam Ravnborg <sam@neptun.ravnborg.org>2006-09-25 04:50:14 -0400
commit1ef988569051d47e990fe5bbea22fb9b64152098 (patch)
tree2f2e5f7d0a0be1dc79514c875274967b1c136d53 /Makefile
parent2e99f3190f274c6783758ff511edb64e60753c9f (diff)
kbuild: correct and clarify versioning info in Makefile
The attached patch clarifies the creation of KERNELRELEASE and corrects an error regarding the use of $(LOCALVERSION). Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 27 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 13bc589c6056..241fed3a74a6 100644
--- a/Makefile
+++ b/Makefile
@@ -760,12 +760,34 @@ $(vmlinux-dirs): prepare scripts
760 $(Q)$(MAKE) $(build)=$@ 760 $(Q)$(MAKE) $(build)=$@
761 761
762# Build the kernel release string 762# Build the kernel release string
763# The KERNELRELEASE is stored in a file named include/config/kernel.release
764# to be used when executing for example make install or make modules_install
765# 763#
766# Take the contents of any files called localversion* and the config 764# The KERNELRELEASE value built here is stored in the file
767# variable CONFIG_LOCALVERSION and append them to KERNELRELEASE. 765# include/config/kernel.release, and is used when executing several
768# LOCALVERSION from the command line override all of this 766# make targets, such as "make install" or "make modules_install."
767#
768# The eventual kernel release string consists of the following fields,
769# shown in a hierarchical format to show how smaller parts are concatenated
770# to form the larger and final value, with values coming from places like
771# the Makefile, kernel config options, make command line options and/or
772# SCM tag information.
773#
774# $(KERNELVERSION)
775# $(VERSION) eg, 2
776# $(PATCHLEVEL) eg, 6
777# $(SUBLEVEL) eg, 18
778# $(EXTRAVERSION) eg, -rc6
779# $(localver-full)
780# $(localver)
781# localversion* (all localversion* files)
782# $(CONFIG_LOCALVERSION) (from kernel config setting)
783# $(localver-auto) (only if CONFIG_LOCALVERSION_AUTO is set)
784# ./scripts/setlocalversion (SCM tag, if one exists)
785# $(LOCALVERSION) (from make command line if provided)
786#
787# Note how the final $(localver-auto) string is included *only* if the
788# kernel config option CONFIG_LOCALVERSION_AUTO is selected. Also, at the
789# moment, only git is supported but other SCMs can edit the script
790# scripts/setlocalversion and add the appropriate checks as needed.
769 791
770nullstring := 792nullstring :=
771space := $(nullstring) # end of line 793space := $(nullstring) # end of line