From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RWWId-0006yS-JM for openembedded-core@lists.openembedded.org; Fri, 02 Dec 2011 17:49:23 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pB2Ggfi2031902 for ; Fri, 2 Dec 2011 16:42:41 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31102-09 for ; Fri, 2 Dec 2011 16:42:36 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pB2GgY7x031896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 2 Dec 2011 16:42:35 GMT Message-ID: <1322844163.25960.10.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Fri, 02 Dec 2011 16:42:43 +0000 In-Reply-To: <1322842923-27530-1-git-send-email-Martin.Jansa@gmail.com> References: <20111202161847.GF3770@jama.jama.net> <1322842923-27530-1-git-send-email-Martin.Jansa@gmail.com> X-Mailer: Evolution 3.2.1- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Subject: Re: [PATCH] bitbake.conf: add default PRINC 0 to be able to increment it X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2011 16:49:23 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2011-12-02 at 17:22 +0100, Martin Jansa wrote: > Signed-off-by: Martin Jansa > --- > meta/conf/bitbake.conf | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf > index 87efd8e..552942b 100644 > --- a/meta/conf/bitbake.conf > +++ b/meta/conf/bitbake.conf > @@ -166,6 +166,7 @@ ASSUME_PROVIDED = "\ > PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}" > PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[1] or '1.0'}" > PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[2] or 'r0'}" > +PRINC := "0" > PF = "${PN}-${EXTENDPE}${PV}-${PR}" > EXTENDPE = "${@['','${PE\x7d_'][d.getVar('PE',1) > 0]}" > P = "${PN}-${PV}" Why does this need := ? (it doesn't) Also, can you change the expression in base.bbclass from: princ = d.getVar('PRINC', True) if princ: to: if princ and princ != "0": since otherwise I think this will have rather a negative effect on parsing speed. Cheers, Richard