[oe-commits] Koen Kooi : wpa-supplicant 0.7: use madwifi solution from 0.5.x and 0.6.x

git version control git at git.openembedded.org
Sun Feb 20 16:07:46 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ee97ccce95a61f20f78fb5e133133b7d9f6ed3de
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ee97ccce95a61f20f78fb5e133133b7d9f6ed3de

Author: Koen Kooi <koen at openembedded.org>
Date:   Sun Feb 20 17:01:12 2011 +0100

wpa-supplicant 0.7: use madwifi solution from 0.5.x and 0.6.x

This makes the package only machine dependant if 'madwifi' is both in machine features and distro features. This avoids having to build an identical wpa-supplicant for every machine which is a significant saving for both machine and distro maintainers.

Fun fact: no in-tree machine has madwifi in machine features.

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 recipes/wpa-supplicant/wpa-supplicant-0.7.inc |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes/wpa-supplicant/wpa-supplicant-0.7.inc b/recipes/wpa-supplicant/wpa-supplicant-0.7.inc
index b4e996a..7649038 100644
--- a/recipes/wpa-supplicant/wpa-supplicant-0.7.inc
+++ b/recipes/wpa-supplicant/wpa-supplicant-0.7.inc
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
                     file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
 DEPENDS = "gnutls dbus libnl2 openssl ${@base_contains("COMBINED_FEATURES", "madwifi", "madwifi-ng", "",d)}"
 RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
-INC_PR = "r5"
+INC_PR = "r6"
 
 SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
            file://defconfig \
@@ -81,7 +81,9 @@ do_install () {
 	install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
 }
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
+#we introduce MY_ARCH to get 'armv5te' as arch instead of the misleading 'arm' on armv5te builds
+MY_ARCH := "${PACKAGE_ARCH}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'madwifi', '${MACHINE_ARCH}', '${MY_ARCH}', d)}"
 
 pkg_postinst_wpa-supplicant () {
 	# can't do this offline





More information about the Openembedded-commits mailing list