]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake.conf: No longer support PR from filename
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Sep 2023 15:38:01 +0000 (16:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Sep 2023 06:43:51 +0000 (07:43 +0100)
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 <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 8b264618745781415e2676016ad6ad7aded48920..67577c8fe7e7170045586fca75dd689c560acdd9 100644 (file)
@@ -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]}"