summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-02 11:37:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-02 11:40:53 +0100
commit5fdbda6922327d963d4fe1c597fed8f0dfd20ed1 (patch)
tree98e3a58efeaead2fa76110b571cfda3f63414277 /meta/classes/kernel.bbclass
parent0bfb2094e3eadc85358a354d12b211ff69612a61 (diff)
downloadpoky-5fdbda6922327d963d4fe1c597fed8f0dfd20ed1.tar.gz
classes: Update to use corrected bb.utils.explode_dep_versions2 API
The bb.utils.explode_dep_versions function has issues where dependency information can be lost. The API doesn't support maintaining the correct information so this changes to use a new function which correctly handles the data. This patch also fixes various points in the code to ensure that we do not have any duplicates in things that use explode_dep_versions. A new sanity test to test the contents of the R* variables is also added. [Some changes from Mark Hatle <mark.hatle@windriver.com>] (From OE-Core rev: 16a892431d0c0d03f8b561b92909cf2f11af4918) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass12
1 files changed, 5 insertions, 7 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index fdef1bea97..36bc3c7cf4 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -429,13 +429,11 @@ python populate_packages_prepend () {
429 old_desc = d.getVar('DESCRIPTION_' + pkg, True) or "" 429 old_desc = d.getVar('DESCRIPTION_' + pkg, True) or ""
430 d.setVar('DESCRIPTION_' + pkg, old_desc + "; " + vals["description"]) 430 d.setVar('DESCRIPTION_' + pkg, old_desc + "; " + vals["description"])
431 431
432 rdepends_str = d.getVar('RDEPENDS_' + pkg, True) 432 rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg, True) or "")
433 if rdepends_str: 433 for dep in get_dependencies(file, pattern, format):
434 rdepends = rdepends_str.split() 434 if not dep in rdepends:
435 else: 435 rdepends[dep] = []
436 rdepends = [] 436 d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
437 rdepends.extend(get_dependencies(file, pattern, format))
438 d.setVar('RDEPENDS_' + pkg, ' '.join(rdepends))
439 437
440 module_deps = parse_depmod() 438 module_deps = parse_depmod()
441 module_regex = '^(.*)\.k?o$' 439 module_regex = '^(.*)\.k?o$'