1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Helper functions for checking feature variables.
inherit utils
def df_enabled(feature, value, d):
return base_contains("DISTRO_FEATURES", feature, value, "", d)
def mf_enabled(feature, value, d):
return base_contains("MACHINE_FEATURES", feature, value, "", d)
def cf_enabled(feature, value, d):
return value if df_enabled(feature, value, d) \
and mf_enabled(feature, value, d) \
else ""
|