blob: feb1228d3e084561d92e06160750a9b0f486f6d8 [file] [log] [blame]
Paul Fagerburgbab5dde2020-01-10 15:10:29 -07001# -*- coding: utf-8 -*-
2"""Define steps, package names, and directories for creating a Hatch variant
3
4Copyright 2020 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
Paul Fagerburge868e832020-01-22 17:14:04 -070012# Name of the baseboard
13base = 'hatch'
14
Paul Fagerburgbab5dde2020-01-10 15:10:29 -070015# List of steps (named in step_names.py) to run in sequence to create
16# the new variant of the baseboard
17step_list = [
18 step_names.CB_VARIANT,
19 step_names.CB_CONFIG,
20 step_names.ADD_FIT,
21 step_names.GEN_FIT,
22 step_names.COMMIT_FIT,
23 step_names.EC_IMAGE,
24 step_names.EC_BUILDALL,
25 step_names.ADD_YAML,
26 step_names.BUILD_YAML,
27 step_names.EMERGE,
28 step_names.PUSH,
29 step_names.UPLOAD,
30 step_names.FIND,
31 step_names.CQ_DEPEND,
32 step_names.CLEAN_UP]
33
34# Package name for FSP
35fsp = 'intel-cmlfsp'
36
37# Package name for the fitimage
38fitimage_pkg = 'coreboot-private-files-hatch'
39
40# Directory for fitimage; append '~/trunk/src/'' in chroot, '~/chromiumos/src' outside
41fitimage_dir = 'private-overlays/baseboard-hatch-private/sys-boot/coreboot-private-files-hatch'
42
Paul Fagerburg55dabf42020-01-27 15:30:09 -070043# Explanation of gen_fit_image command
44fitimage_cmd = './gen_fit_image.sh %s <path_to_fit_kit> [-b]'
45
Paul Fagerburgbab5dde2020-01-10 15:10:29 -070046# List of packages to cros_workon
47workon_pkgs = ['coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp,
48 fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-hatch-private']
49
50# The emerge command
51emerge_cmd = 'emerge-hatch'
52
53# List of packages to emerge
54emerge_pkgs = ['coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp,
55 fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-hatch-private',
56 'chromeos-config', 'chromeos-config-bsp', 'chromeos-config-bsp-hatch',
57 'coreboot-private-files', fitimage_pkg, 'chromeos-bootimage']
58
59# List of packages to emerge just to build the yaml
60yaml_emerge_pkgs = ['chromeos-config-bsp', 'chromeos-config',
61 'chromeos-config-bsp-hatch', 'chromeos-config-bsp-hatch-private']
62
63# Directory for the private yaml file
64private_yaml_dir = '~/trunk/src/private-overlays/overlay-hatch-private/'\
65 'chromeos-base/chromeos-config-bsp-hatch-private'