diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2022-04-12 14:03:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-19 14:14:11 +0100 |
commit | 46cdb52d7ff1ac2207bd3f807a4479975674a018 (patch) | |
tree | c2260a57e1b793d79b90796bfc08d5d1eea82d4f /meta/recipes-connectivity/wpa-supplicant | |
parent | 4f2214775da424351aee476f48a6af9d25df5bbe (diff) | |
download | poky-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.bb | 22 |
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 | ||
100 | PACKAGE_BEFORE_PN += "${PN}-passphrase ${PN}-cli" | 100 | PACKAGE_BEFORE_PN += "${PN}-passphrase ${PN}-cli" |
101 | PACKAGES += "${PN}-plugins" | ||
102 | ALLOW_EMPTY:${PN}-plugins = "1" | ||
103 | |||
104 | PACKAGES_DYNAMIC += "^${PN}-plugin-.*$" | ||
105 | NOAUTOPACKAGEDEBUG = "1" | ||
101 | 106 | ||
102 | FILES:${PN}-passphrase = "${bindir}/wpa_passphrase" | 107 | FILES:${PN}-passphrase = "${bindir}/wpa_passphrase" |
103 | FILES:${PN}-cli = "${sbindir}/wpa_cli" | 108 | FILES:${PN}-cli = "${sbindir}/wpa_cli" |
104 | FILES:${PN} += "${datadir}/dbus-1/system-services/* ${systemd_system_unitdir}/*" | 109 | FILES:${PN} += "${datadir}/dbus-1/system-services/* ${systemd_system_unitdir}/*" |
110 | FILES:${PN}-dbg += "${sbindir}/.debug" | ||
105 | 111 | ||
106 | CONFFILES:${PN} += "${sysconfdir}/wpa_supplicant.conf" | 112 | CONFFILES:${PN} += "${sysconfdir}/wpa_supplicant.conf" |
107 | 113 | ||
108 | RRECOMMENDS:${PN} = "${PN}-passphrase ${PN}-cli" | 114 | RRECOMMENDS:${PN} = "${PN}-passphrase ${PN}-cli ${PN}-plugins" |
109 | 115 | ||
110 | SYSTEMD_SERVICE:${PN} = "wpa_supplicant.service" | 116 | SYSTEMD_SERVICE:${PN} = "wpa_supplicant.service" |
111 | SYSTEMD_AUTO_ENABLE = "disable" | 117 | SYSTEMD_AUTO_ENABLE = "disable" |
118 | |||
119 | python 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 | } | ||
131 | PACKAGESPLITFUNCS:prepend = "split_wpa_supplicant_libs " | ||