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

Daniel. danielhilst at gmail.com
Wed Nov 23 05:26:19 PST 2016


Hi everybody!

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:
PV="1.0.10"
PR="-beta"

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?

Regards,


-- 
*"Do or do not. There is no try"*
  *Yoda Master*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161123/2a86c28b/attachment.html>


More information about the yocto mailing list