diff options
Diffstat (limited to 'meta/recipes-connectivity/connman/connman.inc')
-rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index bb6f5321ed..9966f879a6 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc | |||
@@ -96,20 +96,19 @@ RDEPENDS_${PN} = "\ | |||
96 | PACKAGES_DYNAMIC = "${PN}-plugin-*" | 96 | PACKAGES_DYNAMIC = "${PN}-plugin-*" |
97 | 97 | ||
98 | python populate_packages_prepend() { | 98 | python populate_packages_prepend() { |
99 | depmap = dict( pppd="ppp", | 99 | depmap = dict(pppd="ppp") |
100 | ) | 100 | packages = [] |
101 | packages = [] | 101 | multilib_prefix = (d.getVar("MLPREFIX", True) or "") |
102 | multilib_prefix = (d.getVar("MLPREFIX", True) or "") | 102 | hook = lambda file,pkg,b,c,d:packages.append((file,pkg)) |
103 | hook = lambda file,pkg,b,c,d:packages.append((file,pkg)) | 103 | plugin_dir = d.expand('${libdir}/connman/plugins/') |
104 | plugin_dir = d.expand('${libdir}/connman/plugins/') | 104 | plugin_name = d.expand('${PN}-plugin-%s') |
105 | plugin_name = d.expand('${PN}-plugin-%s') | 105 | do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook, prepend=True ) |
106 | do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook, prepend=True ) | 106 | for (file, package) in packages: |
107 | for (file, package) in packages: | 107 | plugintype = package.split( '-' )[-1] |
108 | plugintype = package.split( '-' )[-1] | 108 | if plugintype in depmap: |
109 | if plugintype in depmap: | 109 | rdepends = map(lambda x: multilib_prefix + x, depmap[plugintype].split()) |
110 | rdepends = map(lambda x: multilib_prefix + x, depmap[plugintype].split()) | 110 | bb.note( "Adding rdependency on %s to %s" % ( rdepends, package ) ) |
111 | bb.note( "Adding rdependency on %s to %s" % ( rdepends, package ) ) | 111 | d.setVar("RDEPENDS_%s" % package, " ".join(rdepends)) |
112 | d.setVar("RDEPENDS_%s" % package, " ".join(rdepends)) | ||
113 | } | 112 | } |
114 | 113 | ||
115 | PACKAGES =+ "${PN}-tools ${PN}-tests" | 114 | PACKAGES =+ "${PN}-tools ${PN}-tests" |