Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753495Ab1DSG6O (ORCPT ); Tue, 19 Apr 2011 02:58:14 -0400 Received: from cantor.suse.de ([195.135.220.2]:56113 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751889Ab1DSG6J (ORCPT ); Tue, 19 Apr 2011 02:58:09 -0400 Message-ID: <4DAD327B.4030904@suse.cz> Date: Tue, 19 Apr 2011 08:58:03 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 MIME-Version: 1.0 To: Haojian Zhuang Cc: zippel@linux-m68k.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: LOCALVERSION in setlocalversion References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1012 Lines: 28 On 19.4.2011 08:42, Haojian Zhuang wrote: > In scripts/setlocalversion under linux kernel tree, the scripts seems > a little strange. [...] > # append a plus sign if the repository is not in a clean > # annotated or signed tagged state (as git describe only > # looks at signed or annotated tags - git tag -a/-s) and > # LOCALVERSION= is not specified > if test "${LOCALVERSION+set}" != "set"; then > scm=$(scm_version --short) > res="$res${scm:++}" > fi > fi > > LOCALVERSION isn't assigned in any place. Only CONFIG_LOCALVERSION > can be assigned in .config file. > Why do we need to check LOCALVERSION at here? It can be set on the commandline: make LOCALVERSION=something Michal -- 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/