Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 2 | # Copyright (c) 2012 The Chromium OS Authors. |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 3 | |
Stephen Warren | 0844763 | 2013-10-10 10:00:20 -0600 | [diff] [blame] | 4 | |
Simon Glass | 20751d6 | 2022-07-11 19:04:03 -0600 | [diff] [blame] | 5 | """A single board which can be selected and built""" |
Simon Glass | aa40f9a | 2014-08-09 15:33:08 -0600 | [diff] [blame] | 6 | |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 7 | class Board: |
| 8 | """A particular board that we can build""" |
Simon Glass | d2d4c60 | 2022-07-11 19:04:06 -0600 | [diff] [blame] | 9 | def __init__(self, status, arch, cpu, soc, vendor, board_name, target, cfg_name): |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 10 | """Create a new board type. |
| 11 | |
| 12 | Args: |
Andreas Bießmann | b66a129 | 2013-09-19 10:08:45 +0200 | [diff] [blame] | 13 | status: define whether the board is 'Active' or 'Orphaned' |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 14 | arch: Architecture name (e.g. arm) |
| 15 | cpu: Cpu name (e.g. arm1136) |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 16 | soc: Name of SOC, or '' if none (e.g. mx31) |
Andreas Bießmann | b66a129 | 2013-09-19 10:08:45 +0200 | [diff] [blame] | 17 | vendor: Name of vendor (e.g. armltd) |
| 18 | board_name: Name of board (e.g. integrator) |
Masahiro Yamada | e9bc8d2 | 2014-07-30 14:08:22 +0900 | [diff] [blame] | 19 | target: Target name (use make <target>_defconfig to configure) |
Simon Glass | c0b6fcc | 2023-07-19 17:48:17 -0600 | [diff] [blame] | 20 | cfg_name: Config-file name (in includes/configs/) |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 21 | """ |
| 22 | self.target = target |
| 23 | self.arch = arch |
| 24 | self.cpu = cpu |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 25 | self.soc = soc |
Simon Glass | c0b6fcc | 2023-07-19 17:48:17 -0600 | [diff] [blame] | 26 | self.vendor = vendor |
| 27 | self.board_name = board_name |
Simon Glass | d2d4c60 | 2022-07-11 19:04:06 -0600 | [diff] [blame] | 28 | self.cfg_name = cfg_name |
Tom Rini | b7876c8 | 2016-11-04 22:59:45 -0400 | [diff] [blame] | 29 | self.props = [self.target, self.arch, self.cpu, self.board_name, |
Simon Glass | d2d4c60 | 2022-07-11 19:04:06 -0600 | [diff] [blame] | 30 | self.vendor, self.soc, self.cfg_name] |
Simon Glass | c05694f | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 31 | self.build_it = False |