Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | fc3fe1c | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 2 | # Copyright (c) 2012 The Chromium OS Authors. |
Simon Glass | fc3fe1c | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 3 | |
Stephen Warren | 8426d8b | 2013-10-10 10:00:20 -0600 | [diff] [blame] | 4 | |
Simon Glass | c52bd22 | 2022-07-11 19:04:03 -0600 | [diff] [blame] | 5 | """A single board which can be selected and built""" |
Simon Glass | 6131bea | 2014-08-09 15:33:08 -0600 | [diff] [blame] | 6 | |
Simon Glass | fc3fe1c | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 7 | class Board: |
| 8 | """A particular board that we can build""" |
Simon Glass | 256126c | 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 | fc3fe1c | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 10 | """Create a new board type. |
| 11 | |
| 12 | Args: |
Andreas Bießmann | 03c1bb2 | 2013-09-19 10:08:45 +0200 | [diff] [blame] | 13 | status: define whether the board is 'Active' or 'Orphaned' |
Simon Glass | fc3fe1c | 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 | fc3fe1c | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 16 | soc: Name of SOC, or '' if none (e.g. mx31) |
Andreas Bießmann | 03c1bb2 | 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 | 73f30b9 | 2014-07-30 14:08:22 +0900 | [diff] [blame] | 19 | target: Target name (use make <target>_defconfig to configure) |
Simon Glass | 256126c | 2022-07-11 19:04:06 -0600 | [diff] [blame] | 20 | cfg_name: Config name |
Simon Glass | fc3fe1c | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 21 | """ |
| 22 | self.target = target |
| 23 | self.arch = arch |
| 24 | self.cpu = cpu |
| 25 | self.board_name = board_name |
| 26 | self.vendor = vendor |
| 27 | self.soc = soc |
Simon Glass | 256126c | 2022-07-11 19:04:06 -0600 | [diff] [blame] | 28 | self.cfg_name = cfg_name |
Tom Rini | e0f2406 | 2016-11-04 22:59:45 -0400 | [diff] [blame] | 29 | self.props = [self.target, self.arch, self.cpu, self.board_name, |
Simon Glass | 256126c | 2022-07-11 19:04:06 -0600 | [diff] [blame] | 30 | self.vendor, self.soc, self.cfg_name] |
Simon Glass | fc3fe1c | 2013-04-03 11:07:16 +0000 | [diff] [blame] | 31 | self.build_it = False |