mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 12:28:44 +00:00
framework/target: manager: use get_target_description
use the new get_target_description() when initializing the target inside TargetManager, instead of manually searching through results of list_target_descriptions().
This commit is contained in:
parent
d11165b703
commit
833c3dd0a0
@ -2,7 +2,7 @@ import logging
|
|||||||
|
|
||||||
from wa.framework import signal
|
from wa.framework import signal
|
||||||
from wa.framework.plugin import Parameter
|
from wa.framework.plugin import Parameter
|
||||||
from wa.framework.target.descriptor import (list_target_descriptions,
|
from wa.framework.target.descriptor import (get_target_description,
|
||||||
instantiate_target,
|
instantiate_target,
|
||||||
instantiate_assistant)
|
instantiate_assistant)
|
||||||
from wa.framework.target.info import TargetInfo
|
from wa.framework.target.info import TargetInfo
|
||||||
@ -83,10 +83,7 @@ class TargetManager(object):
|
|||||||
self.rpm.commit_runtime_parameters(parameters)
|
self.rpm.commit_runtime_parameters(parameters)
|
||||||
|
|
||||||
def _init_target(self):
|
def _init_target(self):
|
||||||
target_map = {td.name: td for td in list_target_descriptions()}
|
tdesc = get_target_description(self.target_name)
|
||||||
if self.target_name not in target_map:
|
|
||||||
raise ValueError('Unknown Target: {}'.format(self.target_name))
|
|
||||||
tdesc = target_map[self.target_name]
|
|
||||||
|
|
||||||
extra_plat_params={}
|
extra_plat_params={}
|
||||||
if tdesc.platform is Gem5SimulationPlatform:
|
if tdesc.platform is Gem5SimulationPlatform:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user