diff options
author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2022-06-07 00:01:33 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-06-06 16:34:28 -0700 |
commit | fb14a4ca4937c39a5a26b0c9ae02e3867e2fd55d (patch) | |
tree | 17e52f1a804ef21641300e2b623396b633f34bbd /meta-networking | |
parent | 5851155197453483eb933601297d94fa0c01899a (diff) | |
download | meta-openembedded-fb14a4ca4937c39a5a26b0c9ae02e3867e2fd55d.tar.gz |
networkmanager: improve dependency handling
Plugins of networkmanager redpends on related services. If for example
modemmanager or wpa-supplicant is not installed but the related
networkmanager plugin is, the plugin writes error messages to the
syslog.
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.2.bb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.2.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.2.bb index 6c665d53b..ab8fc136a 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.2.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.2.bb | |||
@@ -83,7 +83,7 @@ PACKAGECONFIG[bluez5] = "-Dbluez5_dun=true,-Dbluez5_dun=false,bluez5" | |||
83 | # consolekit is not picked by shlibs, so add it to RDEPENDS too | 83 | # consolekit is not picked by shlibs, so add it to RDEPENDS too |
84 | PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" | 84 | PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" |
85 | PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info" | 85 | PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info" |
86 | PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp,ppp" | 86 | PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp" |
87 | PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" | 87 | PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" |
88 | PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" | 88 | PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" |
89 | PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf" | 89 | PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf" |
@@ -153,12 +153,26 @@ FILES:${PN}-nmtui-doc = " \ | |||
153 | ${mandir}/man1/nmtui* \ | 153 | ${mandir}/man1/nmtui* \ |
154 | " | 154 | " |
155 | 155 | ||
156 | FILES:${PN}-wifi = "${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wifi.so" | 156 | FILES:${PN}-wifi = "\ |
157 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wifi.so \ | ||
158 | ${libdir}/NetworkManager/conf.d/enable-iwd.conf \ | ||
159 | " | ||
160 | def get_wifi_deps(d): | ||
161 | packageconfig = (d.getVar('PACKAGECONFIG') or "").split() | ||
162 | if 'wifi' in packageconfig: | ||
163 | if 'iwd' in packageconfig: | ||
164 | return 'iwd' | ||
165 | else: | ||
166 | return 'wpa-supplicant' | ||
167 | else: | ||
168 | return '' | ||
169 | RRECOMMENDS:${PN}-wifi += "${@get_wifi_deps(d)}" | ||
157 | 170 | ||
158 | FILES:${PN}-wwan = "\ | 171 | FILES:${PN}-wwan = "\ |
159 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wwan.so \ | 172 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wwan.so \ |
160 | ${NETWORKMANAGER_PLUGINDIR}/libnm-wwan.so \ | 173 | ${NETWORKMANAGER_PLUGINDIR}/libnm-wwan.so \ |
161 | " | 174 | " |
175 | RRECOMMENDS:${PN}-wwan += "${@bb.utils.contains('PACKAGECONFIG','modemmanager','modemmanager','',d)}" | ||
162 | 176 | ||
163 | FILES:${PN}-ovs = "\ | 177 | FILES:${PN}-ovs = "\ |
164 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-ovs.so \ | 178 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-ovs.so \ |
@@ -173,6 +187,7 @@ FILES:${PN}-ppp = "\ | |||
173 | ${NETWORKMANAGER_PLUGINDIR}/libnm-ppp-plugin.so \ | 187 | ${NETWORKMANAGER_PLUGINDIR}/libnm-ppp-plugin.so \ |
174 | ${libdir}/pppd/*/nm-pppd-plugin.so \ | 188 | ${libdir}/pppd/*/nm-pppd-plugin.so \ |
175 | " | 189 | " |
190 | RRECOMMENDS:${PN}-ppp += "${@bb.utils.contains('PACKAGECONFIG','ppp','ppp','',d)}" | ||
176 | 191 | ||
177 | FILES:${PN}-dev += " \ | 192 | FILES:${PN}-dev += " \ |
178 | ${libdir}/pppd/*/*.la \ | 193 | ${libdir}/pppd/*/*.la \ |