1# SPDX-License-Identifier: GPL-2.0+
2# Copyright (c) 2012 The Chromium OS Authors.
3
4
5"""A single board which can be selected and built"""
6
7class Board:
8    """A particular board that we can build"""
9    def __init__(self, status, arch, cpu, soc, vendor, board_name, target, cfg_name):
10        """Create a new board type.
11
12        Args:
13            status: define whether the board is 'Active' or 'Orphaned'
14            arch: Architecture name (e.g. arm)
15            cpu: Cpu name (e.g. arm1136)
16            soc: Name of SOC, or '' if none (e.g. mx31)
17            vendor: Name of vendor (e.g. armltd)
18            board_name: Name of board (e.g. integrator)
19            target: Target name (use make <target>_defconfig to configure)
20            cfg_name: Config-file name (in includes/configs/)
21        """
22        self.target = target
23        self.arch = arch
24        self.cpu = cpu
25        self.soc = soc
26        self.vendor = vendor
27        self.board_name = board_name
28        self.cfg_name = cfg_name
29        self.props = [self.target, self.arch, self.cpu, self.board_name,
30                      self.vendor, self.soc, self.cfg_name]
31        self.build_it = False
32