diff options
-rw-r--r-- | meta/classes/base.bbclass | 2 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index ea5349852b..fbcaefb4dd 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -335,7 +335,7 @@ python () { | |||
335 | 335 | ||
336 | # If PRINC is set, try and increase the PR value by the amount specified | 336 | # If PRINC is set, try and increase the PR value by the amount specified |
337 | princ = d.getVar('PRINC', True) | 337 | princ = d.getVar('PRINC', True) |
338 | if princ: | 338 | if princ and princ != "0": |
339 | pr = d.getVar('PR', True) | 339 | pr = d.getVar('PR', True) |
340 | pr_prefix = re.search("\D+",pr) | 340 | pr_prefix = re.search("\D+",pr) |
341 | prval = re.search("\d+",pr) | 341 | prval = re.search("\d+",pr) |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index acba388226..e80cc32b7d 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -167,6 +167,7 @@ ASSUME_PROVIDED = "\ | |||
167 | PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}" | 167 | PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}" |
168 | PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[1] or '1.0'}" | 168 | PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[1] or '1.0'}" |
169 | PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[2] or 'r0'}" | 169 | PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[2] or 'r0'}" |
170 | PRINC ?= "0" | ||
170 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" | 171 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" |
171 | EXTENDPE = "${@['','${PE\x7d_'][d.getVar('PE',1) > 0]}" | 172 | EXTENDPE = "${@['','${PE\x7d_'][d.getVar('PE',1) > 0]}" |
172 | P = "${PN}-${PV}" | 173 | P = "${PN}-${PV}" |