summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2022-06-07 00:01:33 +0200
committerKhem Raj <raj.khem@gmail.com>2022-06-06 16:34:28 -0700
commitfb14a4ca4937c39a5a26b0c9ae02e3867e2fd55d (patch)
tree17e52f1a804ef21641300e2b623396b633f34bbd /meta-networking
parent5851155197453483eb933601297d94fa0c01899a (diff)
downloadmeta-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.bb19
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
84PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" 84PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit"
85PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info" 85PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info"
86PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp,ppp" 86PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp"
87PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" 87PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq"
88PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" 88PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss"
89PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf" 89PACKAGECONFIG[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
156FILES:${PN}-wifi = "${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wifi.so" 156FILES:${PN}-wifi = "\
157 ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wifi.so \
158 ${libdir}/NetworkManager/conf.d/enable-iwd.conf \
159"
160def 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 ''
169RRECOMMENDS:${PN}-wifi += "${@get_wifi_deps(d)}"
157 170
158FILES:${PN}-wwan = "\ 171FILES:${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"
175RRECOMMENDS:${PN}-wwan += "${@bb.utils.contains('PACKAGECONFIG','modemmanager','modemmanager','',d)}"
162 176
163FILES:${PN}-ovs = "\ 177FILES:${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"
190RRECOMMENDS:${PN}-ppp += "${@bb.utils.contains('PACKAGECONFIG','ppp','ppp','',d)}"
176 191
177FILES:${PN}-dev += " \ 192FILES:${PN}-dev += " \
178 ${libdir}/pppd/*/*.la \ 193 ${libdir}/pppd/*/*.la \