From: Stefan Herbrechtsmeier <stefan.herbrechtsme...@weidmueller.com>
Add a base package version (BPV) variable and use it as default for the package version (PV) variable. The BPV variable contains the base package version of the recipe read from the recipe filename. The base package version variable supports an expansion of the version from the recipe filename without the need of an immediate variable expansion: PV = "${BPV}+git${SRCPV}" It allows the inclusion of include files inside a recipe file with the same version in the recipe and include filename even if the package version is different to the base package version in the filename: require linux-yocto-${BPV}.inc Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsme...@weidmueller.com> --- meta/conf/bitbake.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 7705415a4f..d56cf811ba 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -232,7 +232,8 @@ ASSUME_PROVIDED = "\ ################################################################## PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" -PV = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" +BPV = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" +PV = "${BPV}" PR = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" PE = "" PF = "${PN}-${EXTENDPE}${PV}-${PR}" -- 2.30.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#163774): https://lists.openembedded.org/g/openembedded-core/message/163774 Mute This Topic: https://lists.openembedded.org/mt/90127138/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-