summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2022-04-12 14:03:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-19 14:14:11 +0100
commit46cdb52d7ff1ac2207bd3f807a4479975674a018 (patch)
treec2260a57e1b793d79b90796bfc08d5d1eea82d4f /meta/recipes-connectivity/wpa-supplicant
parent4f2214775da424351aee476f48a6af9d25df5bbe (diff)
downloadpoky-46cdb52d7ff1ac2207bd3f807a4479975674a018.tar.gz
wpa-supplicant: Package dynamic modules
If CONFIG_DYNAMIC_EAP_METHODS and some modules are set to `dyn` ensure these are packaged as part of the build. (From OE-Core rev: 6043e4332beea8073eb1148a59b66f0618c05e96) Signed-off-by: Alex Kiernan <alexk@zuma.ai> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 "