get version info of dependencies in recipe
When writing a recipe I would like to get access to the meta data of the dependencies, specifically there PV so I can then pass this info into this build.
Quoted 1 line
Quoted 1 line
pkga.bb
```
DEPENDS = "pkgb";
EXTRA_OECMAKE += "-DPKGB_REV=${PV:pn-pkgb}"
```Is this possible?
I'm curious about the use case. How is the version information used once passed in to cmake?
The correct approach would be for the pkga's cmake build system to obtain the version from pkgb.pc (pkg-config file) in its sysroot.
Alex
Quoted 28 lines · tastyherring via lists.yoctoproject.org
When writing a recipe I would like to get access to the meta data of the dependencies, specifically there PV so I can then pass this info into this build.
Quoted 1 line
Quoted 1 line
pkga.bb
``` DEPENDS = "pkgb"; EXTRA_OECMAKE += "-DPKGB_REV=${PV:pn-pkgb}" ```Is this possible?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63466): https://lists.yoctoproject.org/g/yocto/message/63466
Mute This Topic: https://lists.yoctoproject.org/mt/107159621/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-