diff options
| -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 6c665d53bb..ab8fc136a9 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 \ |
