Skip to contentSkip to conversation

get version info of dependencies in recipe

DISCUSSION [email protected] 2 participants 2 messages Jul 11, 2024

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw

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]]
-=-=-=-=-=-=-=-=-=-=-=-