Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751975AbbDEGwe (ORCPT ); Sun, 5 Apr 2015 02:52:34 -0400 Received: from www.osadl.org ([62.245.132.105]:40050 "EHLO www.osadl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbbDEGwb (ORCPT ); Sun, 5 Apr 2015 02:52:31 -0400 From: Nicholas Mc Guire To: Michal Marek Cc: Jonathan Corbet , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Nicholas Mc Guire Subject: [PATCH] kbuild: add documentation of KBUILD_BUILD_VERSION Date: Sun, 5 Apr 2015 08:44:28 +0200 Message-Id: <1428216268-3545-1-git-send-email-hofrat@osadl.org> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1609 Lines: 39 KBUILD_BUILD_VERSION is currently not documented but it is needed when rebuilding a kernel that should result in the identical binary. This is a brief documentation of KBUILD_BUILD_VERSION. Signed-off-by: Nicholas Mc Guire --- Patch is against 4.0-rc6 (localversion-next is -next-20150402) Documentation/kbuild/kbuild.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index 6466704..7ad01d9 100644 --- a/Documentation/kbuild/kbuild.txt +++ b/Documentation/kbuild/kbuild.txt @@ -213,6 +213,14 @@ UTS_VERSION definition (uname -v in the running kernel). The value has to be a string that can be passed to date -d. The default value is the output of the date command at one point during build. +KBUILD_BUILD_VERSION +-------------------------------------------------- +Setting this to an integer overrides the build version number used in the +UTS_VERSION definition (uname -v in the running kernel shown as e.g. #1). +The default value is set to 0 if .version does not yet exist and is +generated by incrementing the current value in .version by one if it +already exists. + KBUILD_BUILD_USER, KBUILD_BUILD_HOST -------------------------------------------------- These two variables allow to override the user@host string displayed during -- 1.7.10.4 -- 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/