summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 00:05:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-08 17:17:01 +0000
commit6829a8990a45483de61e8a2b8781d9abd5435ca6 (patch)
tree6eb21925d9008bc06417b0ef6a4dfde774c421d8 /meta/conf/bitbake.conf
parent7843548285e2eea8158670316058fff4b769c236 (diff)
downloadpoky-6829a8990a45483de61e8a2b8781d9abd5435ca6.tar.gz
bitbake.conf: Cleanup deprecated function usage
This function was moved in bitbake a long time ago, use the preferred version to avoid a Deprecation warning. (From OE-Core rev: aeb189ac8bc6625ec936fd69f18974ebde758946) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index dcf2007883..6480062354 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -199,9 +199,9 @@ ASSUME_PROVIDED = "\
199# Package default variables. 199# Package default variables.
200################################################################## 200##################################################################
201 201
202PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" 202PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
203PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" 203PV = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
204PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" 204PR = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}"
205PE = "" 205PE = ""
206PF = "${PN}-${EXTENDPE}${PV}-${PR}" 206PF = "${PN}-${EXTENDPE}${PV}-${PR}"
207EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}" 207EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}"