2018-05-06 17:58:06 -04: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 10:00:20 -06:00
|
|
|
|
2022-07-11 19:04:03 -06:00
|
|
|
"""A single board which can be selected and built"""
|
2014-08-09 15:33:08 -06:00
|
|
|
|
2013-04-03 11:07:16 +00:00
|
|
|
class Board:
|
|
|
|
"""A particular board that we can build"""
|
2022-07-11 19:04:06 -06: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 10:08:45 +02: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 10:08:45 +02:00
|
|
|
vendor: Name of vendor (e.g. armltd)
|
|
|
|
board_name: Name of board (e.g. integrator)
|
2014-07-30 14:08:22 +09:00
|
|
|
target: Target name (use make <target>_defconfig to configure)
|
2022-07-11 19:04:06 -06:00
|
|
|
cfg_name: Config name
|
2013-04-03 11:07:16 +00:00
|
|
|
"""
|
|
|
|
self.target = target
|
|
|
|
self.arch = arch
|
|
|
|
self.cpu = cpu
|
|
|
|
self.board_name = board_name
|
|
|
|
self.vendor = vendor
|
|
|
|
self.soc = soc
|
2022-07-11 19:04:06 -06:00
|
|
|
self.cfg_name = cfg_name
|
2016-11-04 22:59:45 -04:00
|
|
|
self.props = [self.target, self.arch, self.cpu, self.board_name,
|
2022-07-11 19:04:06 -06:00
|
|
|
self.vendor, self.soc, self.cfg_name]
|
2013-04-03 11:07:16 +00:00
|
|
|
self.build_it = False
|