summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/wpa-supplicant')
-rw-r--r--meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb22
1 files changed, 21 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
index 861855e485..e83aef70d5 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
@@ -98,14 +98,34 @@ pkg_postinst:${PN} () {
98} 98}
99 99
100PACKAGE_BEFORE_PN += "${PN}-passphrase ${PN}-cli" 100PACKAGE_BEFORE_PN += "${PN}-passphrase ${PN}-cli"
101PACKAGES += "${PN}-plugins"
102ALLOW_EMPTY:${PN}-plugins = "1"
103
104PACKAGES_DYNAMIC += "^${PN}-plugin-.*$"
105NOAUTOPACKAGEDEBUG = "1"
101 106
102FILES:${PN}-passphrase = "${bindir}/wpa_passphrase" 107FILES:${PN}-passphrase = "${bindir}/wpa_passphrase"
103FILES:${PN}-cli = "${sbindir}/wpa_cli" 108FILES:${PN}-cli = "${sbindir}/wpa_cli"
104FILES:${PN} += "${datadir}/dbus-1/system-services/* ${systemd_system_unitdir}/*" 109FILES:${PN} += "${datadir}/dbus-1/system-services/* ${systemd_system_unitdir}/*"
110FILES:${PN}-dbg += "${sbindir}/.debug"
105 111
106CONFFILES:${PN} += "${sysconfdir}/wpa_supplicant.conf" 112CONFFILES:${PN} += "${sysconfdir}/wpa_supplicant.conf"
107 113
108RRECOMMENDS:${PN} = "${PN}-passphrase ${PN}-cli" 114RRECOMMENDS:${PN} = "${PN}-passphrase ${PN}-cli ${PN}-plugins"
109 115
110SYSTEMD_SERVICE:${PN} = "wpa_supplicant.service" 116SYSTEMD_SERVICE:${PN} = "wpa_supplicant.service"
111SYSTEMD_AUTO_ENABLE = "disable" 117SYSTEMD_AUTO_ENABLE = "disable"
118
119python split_wpa_supplicant_libs () {
120 libdir = d.expand('${libdir}/wpa_supplicant')
121 dbglibdir = os.path.join(libdir, '.debug')
122
123 split_packages = do_split_packages(d, libdir, r'^(.*)\.so', '${PN}-plugin-%s', 'wpa_supplicant %s plugin', prepend=True)
124 split_dbg_packages = do_split_packages(d, dbglibdir, r'^(.*)\.so', '${PN}-plugin-%s-dbg', 'wpa_supplicant %s plugin - Debugging files', prepend=True, extra_depends='${PN}-dbg')
125
126 if split_packages:
127 pn = d.getVar('PN')
128 d.setVar('RRECOMMENDS:' + pn + '-plugins', ' '.join(split_packages))
129 d.appendVar('RRECOMMENDS:' + pn + '-dbg', ' ' + ' '.join(split_dbg_packages))
130}
131PACKAGESPLITFUNCS:prepend = "split_wpa_supplicant_libs "