mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
fw/target: account for platform_target_defaults
When iterating over PLATFORMS tuples, account for the platform_target_defaults introduced by 7470fb5ee. Also, correct the tuple description in the comments.
This commit is contained in:
parent
578d2d3a16
commit
9f06950fb1
@ -416,7 +416,7 @@ ASSISTANTS = {
|
||||
'chromeos': ChromeOsAssistant
|
||||
}
|
||||
|
||||
# name --> (((platform_class, conn_class), params_list, defaults), target_defaults)
|
||||
# name --> ((platform_class, conn_class), params_list, defaults, target_defaults)
|
||||
# Note: normally, connection is defined by the Target name, but
|
||||
# platforms may choose to override it
|
||||
# Note: the target_defaults allows you to override common target_params for a
|
||||
@ -556,7 +556,7 @@ def add_description_for_target(target, description=None, **kwargs):
|
||||
if 'platform' not in kwargs:
|
||||
kwargs['platform'] = Platform
|
||||
if 'platform_params' not in kwargs:
|
||||
for (plat, conn), params, _ in PLATFORMS.values():
|
||||
for (plat, conn), params, _, _ in PLATFORMS.values():
|
||||
if plat == kwargs['platform']:
|
||||
kwargs['platform_params'] = params
|
||||
if conn is not None and kwargs['conn'] is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user