[OE-core] [PATCH v2 3/3] bitbake.conf: Set GITPKGV variable

Mike Looijmans mike.looijmans at topic.nl
Tue Jun 9 08:50:55 UTC 2015


On 22-05-15 08:29, Mike Looijmans wrote:
> Set GITPKGV to mimic the meta-openembedded 'gitpkgv' class. This allows
> a recipe to simply set:
> PKGV="1.2+${GITPKGV}"
> And no longer needs to inherit gitpkgv class.
> ---
>   conf/bitbake.conf | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/conf/bitbake.conf b/conf/bitbake.conf
> index a35219d..5dafd52 100644
> --- a/conf/bitbake.conf
> +++ b/conf/bitbake.conf
> @@ -47,3 +47,4 @@ TARGET_ARCH = "${BUILD_ARCH}"
>   TMPDIR = "${TOPDIR}/tmp"
>   WORKDIR = "${TMPDIR}/work/${PF}"
>   PERSISTENT_DIR = "${TMPDIR}/cache"
> +GITPKGV = "${@bb.fetch2.get_srcrev(d, 'gitpkgv_revision')}"
>

This looked okay, but when put to a practical test, I noticed that this did 
not work at all. The GITPKGV variable is not set when building recipes, 
resulting in the literal string ${GITPKGV} appearing in version numbers of 
packages that try to use it.

It does work when I add this line to local.conf, but apparently bitbake.conf 
never actually gets parsed?




Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail








More information about the Openembedded-core mailing list