# Copyright (C) 2021 Braiins Systems s.r.o.
#
# This file is part of Braiins Open-Source Initiative (BOSI).
#
# BOSI is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
# Please, keep in mind that we may also license BOSI or any part thereof
# under a proprietary license. For more information on the terms and conditions
# of such proprietary license or if you have any other questions, please
# contact us at opensource@braiins.com.

from .common import Platform, Probe
from .descriptor import TargetTriple, Target, SubTarget, OsInfo, MinerType


class PlatformWm1(Platform):
    def __init__(self, sub_target: SubTarget, variant, os_info: OsInfo, probe: Probe):
        super().__init__(
            MinerType.WhatsMiner,
            TargetTriple(Target.wm1, sub_target, variant),
            os_info,
            probe,
        )
