summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2022-04-29 15:04:28 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-03 17:49:50 +0100
commitf485f6089a79f2b97e9ccf2e3d5930082626cf53 (patch)
tree8261d942f4a4808d0f6e3688ee11570ea5e8d573 /meta/recipes-connectivity/wpa-supplicant
parent2d4923e8112f1f0fe8cbf08f31975b9430075743 (diff)
downloadpoky-f485f6089a79f2b97e9ccf2e3d5930082626cf53.tar.gz
wpa-supplicant: update config for gnutls
It fails to build wpa-supplicant with gnutls by setting PACKAGECONFIG with 'gnutls': | wpa_supplicant/../src/eap_common/eap_pwd_common.c:440: undefined reference to `crypto_ec_point_deinit' Disable 3 configure options CONFIG_DPP, CONFIG_EAP_PWD and CONFIG_SAE to make it work with gnutls. (From OE-Core rev: 3a43c2a82881688d85238464db371f695e60b572) Signed-off-by: Kai Kang <kai.kang@windriver.com> 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.bb5
1 files changed, 4 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 aee56578d2..4e27b92bc6 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
@@ -35,12 +35,15 @@ EXTRA_OEMAKE = "'LIBDIR=${libdir}' 'INCDIR=${includedir}' 'BINDIR=${sbindir}'"
35 35
36do_configure () { 36do_configure () {
37 ${MAKE} -C wpa_supplicant clean 37 ${MAKE} -C wpa_supplicant clean
38 sed -e '/CONFIG_TLS=/d' <wpa_supplicant/defconfig >wpa_supplicant/.config 38 sed -e '/^CONFIG_TLS=/d' <wpa_supplicant/defconfig >wpa_supplicant/.config
39 39
40 if ${@ bb.utils.contains('PACKAGECONFIG', 'openssl', 'true', 'false', d) }; then 40 if ${@ bb.utils.contains('PACKAGECONFIG', 'openssl', 'true', 'false', d) }; then
41 echo 'CONFIG_TLS=openssl' >>wpa_supplicant/.config 41 echo 'CONFIG_TLS=openssl' >>wpa_supplicant/.config
42 elif ${@ bb.utils.contains('PACKAGECONFIG', 'gnutls', 'true', 'false', d) }; then 42 elif ${@ bb.utils.contains('PACKAGECONFIG', 'gnutls', 'true', 'false', d) }; then
43 echo 'CONFIG_TLS=gnutls' >>wpa_supplicant/.config 43 echo 'CONFIG_TLS=gnutls' >>wpa_supplicant/.config
44 sed -i -e 's/\(^CONFIG_DPP=\)/#\1/' \
45 -e 's/\(^CONFIG_EAP_PWD=\)/#\1/' \
46 -e 's/\(^CONFIG_SAE=\)/#\1/' wpa_supplicant/.config
44 fi 47 fi
45 48
46 # For rebuild 49 # For rebuild