diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:25:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-27 10:25:34 +0000 |
commit | 0a434ac10158e2011d41a1189e65e9474b1672be (patch) | |
tree | 6171516b25cb337343a6373e34aec0d061e4f5e8 /meta/classes/kernel.bbclass | |
parent | 71fded5145454b144413057e11f78f718d947093 (diff) | |
download | poky-0a434ac10158e2011d41a1189e65e9474b1672be.tar.gz |
getVar/setVar cleanups
Complete the bb.data.getVar/setVar replacements with accesses
directly to the data store object.
(From OE-Core rev: 2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 12e0b83b94..d0cc279a66 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -437,7 +437,7 @@ python populate_packages_prepend () { | |||
437 | else: | 437 | else: |
438 | rdepends = [] | 438 | rdepends = [] |
439 | rdepends.extend(get_dependencies(file, pattern, format)) | 439 | rdepends.extend(get_dependencies(file, pattern, format)) |
440 | bb.data.setVar('RDEPENDS_' + pkg, ' '.join(rdepends), d) | 440 | d.setVar('RDEPENDS_' + pkg, ' '.join(rdepends)) |
441 | 441 | ||
442 | module_deps = parse_depmod() | 442 | module_deps = parse_depmod() |
443 | module_regex = '^(.*)\.k?o$' | 443 | module_regex = '^(.*)\.k?o$' |
@@ -464,10 +464,10 @@ python populate_packages_prepend () { | |||
464 | for pkg in packages[1:]: | 464 | for pkg in packages[1:]: |
465 | if not pkg in blacklist and not pkg in metapkg_rdepends: | 465 | if not pkg in blacklist and not pkg in metapkg_rdepends: |
466 | metapkg_rdepends.append(pkg) | 466 | metapkg_rdepends.append(pkg) |
467 | bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) | 467 | d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends)) |
468 | d.setVar('DESCRIPTION_' + metapkg, 'Kernel modules meta package') | 468 | d.setVar('DESCRIPTION_' + metapkg, 'Kernel modules meta package') |
469 | packages.append(metapkg) | 469 | packages.append(metapkg) |
470 | bb.data.setVar('PACKAGES', ' '.join(packages), d) | 470 | d.setVar('PACKAGES', ' '.join(packages)) |
471 | } | 471 | } |
472 | 472 | ||
473 | # Support checking the kernel size since some kernels need to reside in partitions | 473 | # Support checking the kernel size since some kernels need to reside in partitions |