diff options
Diffstat (limited to 'meta/classes/kernel-module-split.bbclass')
-rw-r--r-- | meta/classes/kernel-module-split.bbclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass index ed42d2b19d..db0ad3367a 100644 --- a/meta/classes/kernel-module-split.bbclass +++ b/meta/classes/kernel-module-split.bbclass | |||
@@ -173,7 +173,15 @@ python split_kernel_module_packages () { | |||
173 | d.setVar('DESCRIPTION_' + pkg, old_desc + "; " + vals["description"]) | 173 | d.setVar('DESCRIPTION_' + pkg, old_desc + "; " + vals["description"]) |
174 | 174 | ||
175 | rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg, True) or "") | 175 | rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg, True) or "") |
176 | for dep in get_dependencies(file, pattern, format): | 176 | modinfo_deps = [] |
177 | if "depends" in vals and vals["depends"] != "": | ||
178 | for dep in vals["depends"].split(","): | ||
179 | on = legitimize_package_name(dep) | ||
180 | dependency_pkg = format % on | ||
181 | modinfo_deps.append(dependency_pkg) | ||
182 | depmod_deps = get_dependencies(file, pattern, format) | ||
183 | all_deps = list(set(modinfo_deps + depmod_deps)) | ||
184 | for dep in all_deps: | ||
177 | if not dep in rdepends: | 185 | if not dep in rdepends: |
178 | rdepends[dep] = [] | 186 | rdepends[dep] = [] |
179 | d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False)) | 187 | d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False)) |