diff options
author | Chris Larson <clarson@mvista.com> | 2009-07-10 11:27:31 -0700 |
---|---|---|
committer | Chris Larson <clarson@mvista.com> | 2009-08-19 13:27:05 -0700 |
commit | aea9acb329d715db851c1bed8506c3d0f9b42ae1 (patch) | |
tree | 64f0a214af95867585800343554be7f30803b3f6 /classes/base.bbclass | |
parent | e28e9d0b52f26b078b5be4e5ea61e97852ccffac (diff) |
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>
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r-- | classes/base.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 51648dae92..aed927404a 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -159,6 +159,12 @@ def base_read_file(filename): return f.read().strip() return None +def base_ifelse(condition, iftrue = True, iffalse = False): + if condition: + return iftrue + else: + return iffalse + def base_conditional(variable, checkvalue, truevalue, falsevalue, d): import bb if bb.data.getVar(variable,d,1) == checkvalue: |