diff options
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 " | ||