summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2017-03-17 15:53:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 11:35:19 +0000
commitcc2744267f6c6daa594b8c4381d56ac27fe70b81 (patch)
tree873e26c071fa04f2fe54658c600baf2ed5071616
parentd60ede331558efc93011dee6f157028174b9c5a1 (diff)
downloadpoky-cc2744267f6c6daa594b8c4381d56ac27fe70b81.tar.gz
meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME)
bb.data.expand(x, d) is deprecated API. [YOCTO #10678] (From OE-Core rev: a361babe443da635aed83be46679067457fd6a58) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/archiver.bbclass2
-rw-r--r--meta/classes/package.bbclass4
-rw-r--r--meta/classes/utility-tasks.bbclass2
-rw-r--r--meta/lib/oe/patch.py2
-rw-r--r--meta/recipes-extended/pam/libpam_1.3.0.bb2
-rw-r--r--meta/recipes-multimedia/alsa/alsa-plugins_1.1.1.bb2
6 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index ee4790dd68..2c04557f79 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -365,7 +365,7 @@ python do_ar_recipe () {
365 elif include_re.match(line): 365 elif include_re.match(line):
366 incfile = include_re.match(line).group(1) 366 incfile = include_re.match(line).group(1)
367 if incfile: 367 if incfile:
368 incfile = bb.data.expand(incfile, d) 368 incfile = d.expand(incfile)
369 incfile = bb.utils.which(bbpath, incfile) 369 incfile = bb.utils.which(bbpath, incfile)
370 if incfile: 370 if incfile:
371 shutil.copy(incfile, outdir) 371 shutil.copy(incfile, outdir)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 467f5f1c5a..034da840bd 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -778,7 +778,7 @@ python fixup_perms () {
778 dir = d.getVar(path) or "" 778 dir = d.getVar(path) or ""
779 if dir == "": 779 if dir == "":
780 continue 780 continue
781 fs_perms_table[dir] = fs_perms_entry(bb.data.expand("%s 0755 root root false - - -" % (dir), d)) 781 fs_perms_table[dir] = fs_perms_entry(d.expand("%s 0755 root root false - - -" % (dir)))
782 782
783 # Now we actually load from the configuration files 783 # Now we actually load from the configuration files
784 for conf in get_fs_perms_list(d).split(): 784 for conf in get_fs_perms_list(d).split():
@@ -1801,7 +1801,7 @@ python package_do_pkgconfig () {
1801 m = field_re.match(l) 1801 m = field_re.match(l)
1802 if m: 1802 if m:
1803 hdr = m.group(1) 1803 hdr = m.group(1)
1804 exp = bb.data.expand(m.group(2), pd) 1804 exp = pd.expand(m.group(2))
1805 if hdr == 'Requires': 1805 if hdr == 'Requires':
1806 pkgconfig_needed[pkg] += exp.replace(',', ' ').split() 1806 pkgconfig_needed[pkg] += exp.replace(',', ' ').split()
1807 1807
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index da69c3a2fb..587bfd4ab5 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -28,7 +28,7 @@ python do_clean() {
28 bb.note("Removing " + dir) 28 bb.note("Removing " + dir)
29 oe.path.remove(dir) 29 oe.path.remove(dir)
30 30
31 dir = "%s.*" % bb.data.expand(d.getVar('STAMP', False), d) 31 dir = "%s.*" % d.getVar('STAMP')
32 bb.note("Removing " + dir) 32 bb.note("Removing " + dir)
33 oe.path.remove(dir) 33 oe.path.remove(dir)
34 34
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index aaa2d3aabd..f1ab3dd809 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -81,7 +81,7 @@ class PatchSet(object):
81 patch[param] = PatchSet.defaults[param] 81 patch[param] = PatchSet.defaults[param]
82 82
83 if patch.get("remote"): 83 if patch.get("remote"):
84 patch["file"] = bb.data.expand(bb.fetch2.localpath(patch["remote"], self.d), self.d) 84 patch["file"] = self.d.expand(bb.fetch2.localpath(patch["remote"], self.d))
85 85
86 patch["filemd5"] = bb.utils.md5_file(patch["file"]) 86 patch["filemd5"] = bb.utils.md5_file(patch["file"])
87 87
diff --git a/meta/recipes-extended/pam/libpam_1.3.0.bb b/meta/recipes-extended/pam/libpam_1.3.0.bb
index 67b9d53d33..df56d27627 100644
--- a/meta/recipes-extended/pam/libpam_1.3.0.bb
+++ b/meta/recipes-extended/pam/libpam_1.3.0.bb
@@ -116,7 +116,7 @@ python populate_packages_prepend () {
116 d.setVar('RPROVIDES_' + pkg, provides) 116 d.setVar('RPROVIDES_' + pkg, provides)
117 117
118 mlprefix = d.getVar('MLPREFIX') or '' 118 mlprefix = d.getVar('MLPREFIX') or ''
119 dvar = bb.data.expand('${WORKDIR}/package', d, True) 119 dvar = d.expand('${WORKDIR}/package')
120 pam_libdir = d.expand('${base_libdir}/security') 120 pam_libdir = d.expand('${base_libdir}/security')
121 pam_sbindir = d.expand('${sbindir}') 121 pam_sbindir = d.expand('${sbindir}')
122 pam_filterdir = d.expand('${base_libdir}/security/pam_filter') 122 pam_filterdir = d.expand('${base_libdir}/security/pam_filter')
diff --git a/meta/recipes-multimedia/alsa/alsa-plugins_1.1.1.bb b/meta/recipes-multimedia/alsa/alsa-plugins_1.1.1.bb
index 3928fb1cb9..16686a0445 100644
--- a/meta/recipes-multimedia/alsa/alsa-plugins_1.1.1.bb
+++ b/meta/recipes-multimedia/alsa/alsa-plugins_1.1.1.bb
@@ -59,7 +59,7 @@ do_install_append() {
59} 59}
60 60
61python populate_packages_prepend() { 61python populate_packages_prepend() {
62 plugindir = bb.data.expand('${libdir}/alsa-lib/', d) 62 plugindir = d.expand('${libdir}/alsa-lib/')
63 packages = " ".join(do_split_packages(d, plugindir, '^libasound_module_(.*)\.so$', 'libasound-module-%s', 'Alsa plugin for %s', extra_depends='')) 63 packages = " ".join(do_split_packages(d, plugindir, '^libasound_module_(.*)\.so$', 'libasound-module-%s', 'Alsa plugin for %s', extra_depends=''))
64 d.setVar("RDEPENDS_alsa-plugins", packages) 64 d.setVar("RDEPENDS_alsa-plugins", packages)
65} 65}