summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb')
-rw-r--r--meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb16
1 files changed, 6 insertions, 10 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 43865ed960..51ec500485 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
@@ -11,7 +11,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5ebcb90236d1ad640558c3d3cd3035df \
11DEPENDS = "dbus libnl" 11DEPENDS = "dbus libnl"
12 12
13SRC_URI = "http://w1.fi/releases/wpa_supplicant-${PV}.tar.gz \ 13SRC_URI = "http://w1.fi/releases/wpa_supplicant-${PV}.tar.gz \
14 file://defconfig \
15 file://wpa-supplicant.sh \ 14 file://wpa-supplicant.sh \
16 file://wpa_supplicant.conf \ 15 file://wpa_supplicant.conf \
17 file://wpa_supplicant.conf-sane \ 16 file://wpa_supplicant.conf-sane \
@@ -25,7 +24,7 @@ S = "${WORKDIR}/wpa_supplicant-${PV}"
25 24
26inherit pkgconfig systemd 25inherit pkgconfig systemd
27 26
28PACKAGECONFIG ??= "openssl" 27PACKAGECONFIG ?= "openssl"
29PACKAGECONFIG[gnutls] = ",,gnutls libgcrypt" 28PACKAGECONFIG[gnutls] = ",,gnutls libgcrypt"
30PACKAGECONFIG[openssl] = ",,openssl" 29PACKAGECONFIG[openssl] = ",,openssl"
31 30
@@ -33,15 +32,12 @@ CVE_PRODUCT = "wpa_supplicant"
33 32
34do_configure () { 33do_configure () {
35 ${MAKE} -C wpa_supplicant clean 34 ${MAKE} -C wpa_supplicant clean
36 install -m 0755 ${WORKDIR}/defconfig wpa_supplicant/.config 35 sed -e '/CONFIG_TLS=/d' <wpa_supplicant/defconfig >wpa_supplicant/.config
37 36
38 if echo "${PACKAGECONFIG}" | grep -qw "openssl"; then 37 if ${@ bb.utils.contains('PACKAGECONFIG', 'openssl', 'true', 'false', d) }; then
39 ssl=openssl 38 echo 'CONFIG_TLS=openssl' >>wpa_supplicant/.config
40 elif echo "${PACKAGECONFIG}" | grep -qw "gnutls"; then 39 elif ${@ bb.utils.contains('PACKAGECONFIG', 'gnutls', 'true', 'false', d) }; then
41 ssl=gnutls 40 echo 'CONFIG_TLS=gnutls' >>wpa_supplicant/.config
42 fi
43 if [ -n "$ssl" ]; then
44 sed -i "s/%ssl%/$ssl/" wpa_supplicant/.config
45 fi 41 fi
46 42
47 # For rebuild 43 # For rebuild