diff options
| -rw-r--r-- | meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc | 20 | ||||
| -rw-r--r-- | meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig (renamed from meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig-gnutls) | 2 |
2 files changed, 18 insertions, 4 deletions
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc index d9c6532b5a..3a1cce0657 100644 --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc | |||
| @@ -6,16 +6,20 @@ LICENSE = "BSD" | |||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \ | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \ |
| 7 | file://README;beginline=1;endline=56;md5=a07250b28e857455336bb59fc31cb845 \ | 7 | file://README;beginline=1;endline=56;md5=a07250b28e857455336bb59fc31cb845 \ |
| 8 | file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=12;md5=e8e021e30f3a6ab7c341b66b86626a5a" | 8 | file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=12;md5=e8e021e30f3a6ab7c341b66b86626a5a" |
| 9 | DEPENDS = "gnutls dbus libnl openssl libgcrypt" | 9 | DEPENDS = "dbus libnl libgcrypt" |
| 10 | RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli" | 10 | RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli" |
| 11 | 11 | ||
| 12 | PACKAGECONFIG ??= "gnutls" | ||
| 13 | PACKAGECONFIG[gnutls] = ",,gnutls" | ||
| 14 | PACKAGECONFIG[openssl] = ",,openssl" | ||
| 15 | |||
| 12 | inherit systemd | 16 | inherit systemd |
| 13 | 17 | ||
| 14 | SYSTEMD_SERVICE_${PN} = "wpa_supplicant.service wpa_supplicant-nl80211@.service wpa_supplicant-wired@.service" | 18 | SYSTEMD_SERVICE_${PN} = "wpa_supplicant.service wpa_supplicant-nl80211@.service wpa_supplicant-wired@.service" |
| 15 | SYSTEMD_AUTO_ENABLE = "disable" | 19 | SYSTEMD_AUTO_ENABLE = "disable" |
| 16 | 20 | ||
| 17 | SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \ | 21 | SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \ |
| 18 | file://defconfig-gnutls \ | 22 | file://defconfig \ |
| 19 | file://wpa-supplicant.sh \ | 23 | file://wpa-supplicant.sh \ |
| 20 | file://wpa_supplicant.conf \ | 24 | file://wpa_supplicant.conf \ |
| 21 | file://wpa_supplicant.conf-sane \ | 25 | file://wpa_supplicant.conf-sane \ |
| @@ -34,8 +38,18 @@ FILES_${PN} += "${datadir}/dbus-1/system-services/*" | |||
| 34 | CONFFILES_${PN} += "${sysconfdir}/wpa_supplicant.conf" | 38 | CONFFILES_${PN} += "${sysconfdir}/wpa_supplicant.conf" |
| 35 | 39 | ||
| 36 | do_configure () { | 40 | do_configure () { |
| 37 | install -m 0755 ${WORKDIR}/defconfig-gnutls wpa_supplicant/.config | 41 | install -m 0755 ${WORKDIR}/defconfig wpa_supplicant/.config |
| 38 | echo "CFLAGS +=\"-I${STAGING_INCDIR}/libnl3\"" >> wpa_supplicant/.config | 42 | echo "CFLAGS +=\"-I${STAGING_INCDIR}/libnl3\"" >> wpa_supplicant/.config |
| 43 | |||
| 44 | if echo "${PACKAGECONFIG}" | grep -qw "openssl"; then | ||
| 45 | ssl=openssl | ||
| 46 | elif echo "${PACKAGECONFIG}" | grep -qw "gnutls"; then | ||
| 47 | ssl=gnutls | ||
| 48 | fi | ||
| 49 | if [ -n "$ssl" ]; then | ||
| 50 | sed -i "s/%ssl%/$ssl/" wpa_supplicant/.config | ||
| 51 | fi | ||
| 52 | |||
| 39 | } | 53 | } |
| 40 | 54 | ||
| 41 | export EXTRA_CFLAGS = "${CFLAGS}" | 55 | export EXTRA_CFLAGS = "${CFLAGS}" |
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig-gnutls b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig index 92ef8231d5..f04e398fdb 100644 --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig-gnutls +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig | |||
| @@ -453,7 +453,7 @@ CONFIG_CTRL_IFACE_DBUS_NEW=y | |||
| 453 | #LIBS_p += -lbfd -liberty -lz | 453 | #LIBS_p += -lbfd -liberty -lz |
| 454 | #LIBS_c += -lbfd -liberty -lz | 454 | #LIBS_c += -lbfd -liberty -lz |
| 455 | 455 | ||
| 456 | CONFIG_TLS = gnutls | 456 | CONFIG_TLS = %ssl% |
| 457 | CONFIG_CTRL_IFACE_DBUS=y | 457 | CONFIG_CTRL_IFACE_DBUS=y |
| 458 | CONFIG_CTRL_IFACE_DBUS_NEW=y | 458 | CONFIG_CTRL_IFACE_DBUS_NEW=y |
| 459 | 459 | ||
