diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-07 00:05:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-08 17:17:01 +0000 |
commit | 6829a8990a45483de61e8a2b8781d9abd5435ca6 (patch) | |
tree | 6eb21925d9008bc06417b0ef6a4dfde774c421d8 /meta/conf/bitbake.conf | |
parent | 7843548285e2eea8158670316058fff4b769c236 (diff) | |
download | poky-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.conf | 6 |
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 | ||
202 | PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" | 202 | PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" |
203 | PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" | 203 | PV = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" |
204 | PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" | 204 | PR = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" |
205 | PE = "" | 205 | PE = "" |
206 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" | 206 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" |
207 | EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}" | 207 | EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}" |