summaryrefslogtreecommitdiff
path: root/tools/buildman/board.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildman/board.py')
-rw-r--r--tools/buildman/board.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/buildman/board.py b/tools/buildman/board.py
new file mode 100644
index 00000000000..248d8bfff18
--- /dev/null
+++ b/tools/buildman/board.py
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (c) 2012 The Chromium OS Authors.
+
+
+"""A single board which can be selected and built"""
+
+class Board:
+ """A particular board that we can build"""
+ def __init__(self, status, arch, cpu, soc, vendor, board_name, target, cfg_name):
+ """Create a new board type.
+
+ Args:
+ status: define whether the board is 'Active' or 'Orphaned'
+ arch: Architecture name (e.g. arm)
+ cpu: Cpu name (e.g. arm1136)
+ soc: Name of SOC, or '' if none (e.g. mx31)
+ vendor: Name of vendor (e.g. armltd)
+ board_name: Name of board (e.g. integrator)
+ target: Target name (use make <target>_defconfig to configure)
+ cfg_name: Config-file name (in includes/configs/)
+ """
+ self.target = target
+ self.arch = arch
+ self.cpu = cpu
+ self.soc = soc
+ self.vendor = vendor
+ self.board_name = board_name
+ self.cfg_name = cfg_name
+ self.props = [self.target, self.arch, self.cpu, self.board_name,
+ self.vendor, self.soc, self.cfg_name]
+ self.build_it = False