Fix stage_value_overrides

Signed-off-by: Krzysztof Boronski <kboronski@antmicro.com>
This commit is contained in:
Krzysztof Boronski 2022-07-20 10:38:48 -05:00
parent 5b109f4beb
commit 26843e76ab
1 changed files with 10 additions and 5 deletions

View File

@ -129,12 +129,17 @@ class ProjectFlowConfig:
return _get_ovs_raw('values', self.flow_cfg, part, stage)
def get_stage_value_overrides(self, part: str, stage: str):
stage_vals_ovds = {}
vals = self.flow_cfg.get('values')
if vals is not None:
stage_vals_ovds.update(vals)
stage_cfg = self.flow_cfg[part].get(stage)
if stage_cfg is None:
return {}
stage_vals_ovds = stage_cfg.get('values')
if stage_vals_ovds is None:
return {}
if stage_cfg is not None:
vals = stage_cfg.get('values')
if vals is not None:
stage_vals_ovds.update(vals)
return stage_vals_ovds
def get_dependency_platform_overrides(self, part: str):