[OE-core] [PATCH] bitbake.conf: add default PRINC 0 to be able to increment it
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Dec 2 16:42:43 UTC 2011
On Fri, 2011-12-02 at 17:22 +0100, Martin Jansa wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
> 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
More information about the Openembedded-core
mailing list