Let the distro control whether we include hostap or madwifi.
authorChris Larson <clarson@mvista.com>
Fri, 10 Jul 2009 18:27:31 +0000 (11:27 -0700)
committerChris Larson <clarson@mvista.com>
Wed, 19 Aug 2009 20:27:05 +0000 (13:27 -0700)
commitaea9acb329d715db851c1bed8506c3d0f9b42ae1
tree64f0a214af95867585800343554be7f30803b3f6
parente28e9d0b52f26b078b5be4e5ea61e97852ccffac
Let the distro control whether we include hostap or madwifi.

- Add base_ifelse convenience function to base.bbclass.
- Replace all conditionals in the recipes relating to hostap and madwifi to
  look for their name in COMBINED_FEATURES rather than looking for specific buses (pci, pcmcia).
- Change the default COMBINED_FEATURES to enable:
  - madwifi, when:
    - distro has pci, wifi, and madwifi in its features
    - machine has pci in its features
  - hostap, when:
    - 'wifi' and 'hostap' are in distro features
    - either 'pci' or 'pcmcia' are in both distro and machine features

Signed-off-by: Chris Larson <clarson@mvista.com>
classes/base.bbclass
conf/bitbake.conf
recipes/hostap/hostap-daemon_0.5.10.bb
recipes/tasks/task-base.bb
recipes/tasks/task-mokogateway.bb
recipes/wpa-supplicant/wpa-supplicant-0.6.inc
recipes/wpa-supplicant/wpa-supplicant_0.5.10.bb