blob: 4174e6cb58dcab4996a154211150cab47ceb08b6 [file] [log] [blame]
Paul Fagerburgd7537db2021-05-17 15:52:03 -06001# -*- coding: utf-8 -*-
2"""Define steps, package names, and directories for creating a Brya variant
3
4Copyright 2021 The Chromium OS Authors. All rights reserved.
5Use of this source code is governed by a BSD-style license that can be
6found in the LICENSE file.
7"""
8
9from __future__ import print_function
10import step_names
11
12# Name of the baseboard
13base = 'brya'
14
15# Name of the reference board
16board = 'brya0'
17
18# List of steps (named in step_names.py) to run in sequence to create
19# the new variant of the baseboard
20step_list = [
21 step_names.PROJECT_CONFIG,
22 step_names.FW_BUILD_CONFIG,
23 step_names.CB_VARIANT,
24 step_names.CB_CONFIG,
25 step_names.ADD_FIT,
26 step_names.GEN_FIT,
27 step_names.COMMIT_FIT,
28 step_names.EC_IMAGE,
29 step_names.EMERGE,
30 step_names.PUSH,
31 step_names.UPLOAD,
32 step_names.FIND,
33 step_names.CALC_CQ_DEPEND,
34 step_names.ADD_CQ_DEPEND,
35 step_names.RE_UPLOAD,
36 step_names.CLEAN_UP]
37
38# Base directory for coreboot
39coreboot_dir = 'third_party/coreboot'
40
41# Reference board for EC image
42ec_board = 'brya'
43
44# Package name for FSP
45fsp = 'intel-adlfsp'
46
47# Package name for the fitimage
48fitimage_pkg = 'coreboot-private-files-baseboard-brya'
49
50# Directory for fitimage; append '~/trunk/src/'' in chroot, '~/chromiumos/src'
51# outside
52fitimage_dir = 'private-overlays/baseboard-brya-private/sys-boot/'\
53 'coreboot-private-files-baseboard-brya'
54
55# Brya fitimages use csme-${VARIANT}.bin, not fitimage-${VARIANT}.bin
56fitimage_bin = 'csme-%s.bin'
57
58# Directory under fitimage_dir where the fitimage binary will be
59fitimage_bin_dir = 'files/blobs'
60
61# Directory under fitimage_dir where the fitimage versions file will be
62fitimage_versions_dir = 'files/metadata'
63
64# Script to add fitimage sources
65fitimage_script = 'files/add_fitimage.sh'
66
67# List of packages to cros_workon
68workon_pkgs = [
69 'coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp,
70 fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-brya-private']
71
72# The emerge command
73emerge_cmd = 'emerge-brya'
74
75# List of packages to emerge
76emerge_pkgs = [
77 'coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp,
78 fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-brya-private',
79 'chromeos-config', 'chromeos-config-bsp', 'coreboot-private-files',
80 'chromeos-bootimage']
81
82# List of packages to cros_workon to build the project config
83config_workon_pkgs = ['chromeos-config-bsp-brya-private']
84
85# List of packages to emerge to build the project config
86config_emerge_pkgs = ['chromeos-config-bsp-brya-private']
87
88# List of commits that will be uploaded with `repo upload`
89repo_upload_list = [
90 step_names.CB_CONFIG, step_names.COMMIT_FIT,
91 step_names.EC_IMAGE, step_names.FW_BUILD_CONFIG]
92
93# List of commits that will be pushed to review.coreboot.org
94coreboot_push_list = [step_names.CB_VARIANT]
95
96# List of steps that depend on other steps, and what those are.
97# This list gets used for setting up Cq-Depend on the uploaded CLs.
98depends = {
99 step_names.CB_CONFIG: [step_names.FIND],
100 step_names.FW_BUILD_CONFIG: [
101 step_names.FIND, step_names.CB_CONFIG,
102 step_names.COMMIT_FIT, step_names.EC_IMAGE]
103}