From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 787F6744DC for ; Tue, 3 Apr 2018 14:45:49 +0000 (UTC) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id w33EjmVO000925 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 3 Apr 2018 15:45:49 +0100 Message-ID: <1522766748.11431.237.camel@linuxfoundation.org> From: Richard Purdie To: Bruce Ashfield Date: Tue, 03 Apr 2018 15:45:48 +0100 In-Reply-To: References: <20180403042331.24524-1-net147@gmail.com> <1522763949.11431.235.camel@linuxfoundation.org> X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.3 at dan X-Virus-Status: Clean Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH] kernel.bbclass: improve reproducibility X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 14:45:50 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2018-04-03 at 10:11 -0400, Bruce Ashfield wrote: > On Tue, Apr 3, 2018 at 9:59 AM, Richard Purdie > wrote: > > > > On Tue, 2018-04-03 at 08:58 -0400, Bruce Ashfield wrote: > > > > > > On Tue, Apr 3, 2018 at 12:23 AM, Jonathan Liu > > > wrote: > > > > > > > > > > > > Set KBUILD_BUILD_VERSION=1 to avoid build version being > > > > incremented > > > > on > > > > every build. It is visible in the output of "cat /proc/version" > > > > after > > > > the hash character. > > > It is possible that someone might actually want this feature, for > > > debug or > > > different build variants. > > > > > > So this would be better as a variable that can be overridden. > > Surely users can override it in this form (like the USER/HOST > > variants > > already there)? > I've never used the user/host variant, so I don't know. > > How can you override an exported variable in a shell function in a > bbclass ? I've never tried. > > I know for a fact, that I wouldn't want this on by default, hence my > comment. KBUILD_BUILD_VERSION[unexport] = "1" will override the export flag... Cheers, Richard