blob: c3879a73b289cd1c3fe08012e5849dc70540cbf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""TOSA target configuration."""
from mlia.devices.config import IPConfiguration
from mlia.utils.filesystem import get_profile
class TOSAConfiguration(IPConfiguration): # pylint: disable=too-few-public-methods
"""TOSA configuration."""
def __init__(self, target_profile: str) -> None:
"""Init configuration."""
target_data = get_profile(target_profile)
target = target_data["target"]
if target != "tosa":
raise Exception(f"Wrong target {target} for TOSA configuration")
super().__init__(target)
|