Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 1 | # Helper functions for checking feature variables. |
2 | |||||
3 | inherit utils | ||||
4 | |||||
5 | def df_enabled(feature, value, d): | ||||
6 | return base_contains("DISTRO_FEATURES", feature, value, "", d) | ||||
7 | |||||
8 | def mf_enabled(feature, value, d): | ||||
9 | return base_contains("MACHINE_FEATURES", feature, value, "", d) | ||||
10 | |||||
11 | def cf_enabled(feature, value, d): | ||||
12 | return value if df_enabled(feature, value, d) \ | ||||
13 | and mf_enabled(feature, value, d) \ | ||||
14 | else "" |