256126c294
This appears in boards.cfg but we want to remove it. Drop support for generating it and reading it. Detect an old boards.cfg file that has this field and regenerate it, to avoid problems. Instead, add the config name in that place. This fixes a subtle bug in the generation code, since it uses 'target' for the config name and then overwrites the value in scan() by setting params['target'] to the name of the defconfig. The defconfig name is not the same as the SYS_CONFIG_NAME variable. With this change, we still have the config name and it can be searched by buildman, e.g. with: buildman -nv sun5i Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Tom Rini <trini@konsulko.com>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
# 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 name
|
|
"""
|
|
self.target = target
|
|
self.arch = arch
|
|
self.cpu = cpu
|
|
self.board_name = board_name
|
|
self.vendor = vendor
|
|
self.soc = soc
|
|
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
|