blob: 30049bc04a43dc0951447e162636439e7e973164 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001SOC_VARIANT ??= ""
2MACHINEOVERRIDES =. "${@['', '${SOC_FAMILY}${SOC_VARIANT}:']['${SOC_VARIANT}' != '']}"
3
4# Here we can extend overrides for the corresponding family and variant
5def get_soc_overrides(fam, var, d):
6 extender = ''
7 if (fam == 'zynqmp'):
8 if (var == 'eg'):
9 extender = 'mali400:'
10 elif (var == 'ev'):
11 extender = 'mali400:vcu:'
12 return extender
13
14# Gets OVERRIDES extender depending on the board
15SOC_OVERRIDES = "${@get_soc_overrides(d.getVar('SOC_FAMILY'),d.getVar('SOC_VARIANT'), d)}"
16
17MACHINEOVERRIDES =. "${SOC_OVERRIDES}"
18
19PACKAGE_EXTRA_ARCHS_append = " ${SOC_FAMILY}"
20PACKAGE_EXTRA_ARCHS_append = "${@['', ' ${SOC_FAMILY}${SOC_VARIANT}']['${SOC_VARIANT}' != '']}"
21