diff options
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.bb | 14 |
1 files changed, 3 insertions, 11 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 51ec500485..861855e485 100644 --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb | |||
@@ -30,6 +30,8 @@ PACKAGECONFIG[openssl] = ",,openssl" | |||
30 | 30 | ||
31 | CVE_PRODUCT = "wpa_supplicant" | 31 | CVE_PRODUCT = "wpa_supplicant" |
32 | 32 | ||
33 | EXTRA_OEMAKE = "'LIBDIR=${libdir}' 'INCDIR=${includedir}' 'BINDIR=${sbindir}'" | ||
34 | |||
33 | do_configure () { | 35 | do_configure () { |
34 | ${MAKE} -C wpa_supplicant clean | 36 | ${MAKE} -C wpa_supplicant clean |
35 | sed -e '/CONFIG_TLS=/d' <wpa_supplicant/defconfig >wpa_supplicant/.config | 37 | sed -e '/CONFIG_TLS=/d' <wpa_supplicant/defconfig >wpa_supplicant/.config |
@@ -44,12 +46,7 @@ do_configure () { | |||
44 | rm -f wpa_supplicant/*.d wpa_supplicant/dbus/*.d | 46 | rm -f wpa_supplicant/*.d wpa_supplicant/dbus/*.d |
45 | } | 47 | } |
46 | 48 | ||
47 | export EXTRA_CFLAGS = "${CFLAGS}" | ||
48 | export BINDIR = "${sbindir}" | ||
49 | |||
50 | do_compile () { | 49 | do_compile () { |
51 | unset CFLAGS CPPFLAGS CXXFLAGS | ||
52 | sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules | ||
53 | oe_runmake -C wpa_supplicant | 50 | oe_runmake -C wpa_supplicant |
54 | if [ -z "${DISABLE_STATIC}" ]; then | 51 | if [ -z "${DISABLE_STATIC}" ]; then |
55 | oe_runmake -C wpa_supplicant libwpa_client.a | 52 | oe_runmake -C wpa_supplicant libwpa_client.a |
@@ -57,12 +54,7 @@ do_compile () { | |||
57 | } | 54 | } |
58 | 55 | ||
59 | do_install () { | 56 | do_install () { |
60 | install -d ${D}${sbindir} | 57 | oe_runmake -C wpa_supplicant DESTDIR="${D}" install |
61 | install -m 755 wpa_supplicant/wpa_supplicant ${D}${sbindir} | ||
62 | install -m 755 wpa_supplicant/wpa_cli ${D}${sbindir} | ||
63 | |||
64 | install -d ${D}${bindir} | ||
65 | install -m 755 wpa_supplicant/wpa_passphrase ${D}${bindir} | ||
66 | 58 | ||
67 | install -d ${D}${docdir}/wpa_supplicant | 59 | install -d ${D}${docdir}/wpa_supplicant |
68 | install -m 644 wpa_supplicant/README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant | 60 | install -m 644 wpa_supplicant/README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant |