2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2013-04-03 11:07:16 +00:00
|
|
|
# Copyright (c) 2012 The Chromium OS Authors.
|
|
|
|
|
2013-10-10 16:00:20 +00:00
|
|
|
|
2022-07-12 01:04:03 +00:00
|
|
|
"""A single board which can be selected and built"""
|
2014-08-09 21:33:08 +00:00
|
|
|
|
2013-04-03 11:07:16 +00:00
|
|
|
class Board:
|
|
|
|
"""A particular board that we can build"""
|
2022-07-12 01:04:06 +00:00
|
|
|
def __init__(self, status, arch, cpu, soc, vendor, board_name, target, cfg_name):
|
2013-04-03 11:07:16 +00:00
|
|
|
"""Create a new board type.
|
|
|
|
|
|
|
|
Args:
|
2013-09-19 08:08:45 +00:00
|
|
|
status: define whether the board is 'Active' or 'Orphaned'
|
2013-04-03 11:07:16 +00:00
|
|
|
arch: Architecture name (e.g. arm)
|
|
|
|
cpu: Cpu name (e.g. arm1136)
|
|
|
|
soc: Name of SOC, or '' if none (e.g. mx31)
|
2013-09-19 08:08:45 +00:00
|
|
|
vendor: Name of vendor (e.g. armltd)
|
|
|
|
board_name: Name of board (e.g. integrator)
|
2014-07-30 05:08:22 +00:00
|
|
|
target: Target name (use make <target>_defconfig to configure)
|
2023-07-19 23:48:17 +00:00
|
|
|
cfg_name: Config-file name (in includes/configs/)
|
2013-04-03 11:07:16 +00:00
|
|
|
"""
|
|
|
|
self.target = target
|
|
|
|
self.arch = arch
|
|
|
|
self.cpu = cpu
|
|
|
|
self.soc = soc
|
2023-07-19 23:48:17 +00:00
|
|
|
self.vendor = vendor
|
|
|
|
self.board_name = board_name
|
2022-07-12 01:04:06 +00:00
|
|
|
self.cfg_name = cfg_name
|
2016-11-05 02:59:45 +00:00
|
|
|
self.props = [self.target, self.arch, self.cpu, self.board_name,
|
2022-07-12 01:04:06 +00:00
|
|
|
self.vendor, self.soc, self.cfg_name]
|
2013-04-03 11:07:16 +00:00
|
|
|
self.build_it = False
|