summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes/obmc-phosphor-utils.bbclass
blob: 4f556294bc599078c462388f3484141f0b6e72c8 (plain)
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 ""