From: Richard Purdie Date: Wed, 20 Sep 2023 15:38:01 +0000 (+0100) Subject: bitbake.conf: No longer support PR from filename X-Git-Tag: yocto-5.2~5113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f2691a51a851e8337704aa00899eb27250f0f3f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake.conf: No longer support PR from filename Nobody really sets PR from the recipe filename, we might as well drop the overhead of the python function call and simplify the variable. Signed-off-by: Richard Purdie --- diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 8b264618745..67577c8fe7e 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -237,7 +237,7 @@ 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'}" -PR = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" +PR = "r0" PE = "" PF = "${PN}-${EXTENDPE}${PV}-${PR}" EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}"