[yocto] Extracting PV & PR from Makefile at compilation time.

Bipnesh, Abhinav (Abhinav) abhinavbipnesh at avaya.com
Wed Nov 23 06:01:11 PST 2016

One quick way would be to use environment variables in both places. So you can export them before starting a build.

From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Christopher Larson
Sent: Wednesday, November 23, 2016 19:13
To: Daniel.
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Extracting PV & PR from Makefile at compilation time.

On Wed, Nov 23, 2016 at 6:26 AM, Daniel. <danielhilst at gmail.com<mailto:danielhilst at gmail.com>> wrote:
I have a Makefile with this header

major = 1
minor = 0
patch = 10
release = -beta

Which compilates someting like libmylib.so.1.0.10-beta shared object.
On recipe I duplicate this information:

Is there anyway to grab that information from Makefile and setting PV & PR according to it? At compilation time? So that I only have to change at one place?

bitbake wants to know pv/pr at parse time, long before the sources have been fetched and unpacked.
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161123/b55f1c4d/attachment.html>

More information about the yocto mailing list