Paul Fagerburg | d7537db | 2021-05-17 15:52:03 -0600 | [diff] [blame^] | 1 | # -*- coding: utf-8 -*- |
| 2 | """Define steps, package names, and directories for creating a Brya variant |
| 3 | |
| 4 | Copyright 2021 The Chromium OS Authors. All rights reserved. |
| 5 | Use of this source code is governed by a BSD-style license that can be |
| 6 | found in the LICENSE file. |
| 7 | """ |
| 8 | |
| 9 | from __future__ import print_function |
| 10 | import step_names |
| 11 | |
| 12 | # Name of the baseboard |
| 13 | base = 'brya' |
| 14 | |
| 15 | # Name of the reference board |
| 16 | board = 'brya0' |
| 17 | |
| 18 | # List of steps (named in step_names.py) to run in sequence to create |
| 19 | # the new variant of the baseboard |
| 20 | step_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 |
| 39 | coreboot_dir = 'third_party/coreboot' |
| 40 | |
| 41 | # Reference board for EC image |
| 42 | ec_board = 'brya' |
| 43 | |
| 44 | # Package name for FSP |
| 45 | fsp = 'intel-adlfsp' |
| 46 | |
| 47 | # Package name for the fitimage |
| 48 | fitimage_pkg = 'coreboot-private-files-baseboard-brya' |
| 49 | |
| 50 | # Directory for fitimage; append '~/trunk/src/'' in chroot, '~/chromiumos/src' |
| 51 | # outside |
| 52 | fitimage_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 |
| 56 | fitimage_bin = 'csme-%s.bin' |
| 57 | |
| 58 | # Directory under fitimage_dir where the fitimage binary will be |
| 59 | fitimage_bin_dir = 'files/blobs' |
| 60 | |
| 61 | # Directory under fitimage_dir where the fitimage versions file will be |
| 62 | fitimage_versions_dir = 'files/metadata' |
| 63 | |
| 64 | # Script to add fitimage sources |
| 65 | fitimage_script = 'files/add_fitimage.sh' |
| 66 | |
| 67 | # List of packages to cros_workon |
| 68 | workon_pkgs = [ |
| 69 | 'coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp, |
| 70 | fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-brya-private'] |
| 71 | |
| 72 | # The emerge command |
| 73 | emerge_cmd = 'emerge-brya' |
| 74 | |
| 75 | # List of packages to emerge |
| 76 | emerge_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 |
| 83 | config_workon_pkgs = ['chromeos-config-bsp-brya-private'] |
| 84 | |
| 85 | # List of packages to emerge to build the project config |
| 86 | config_emerge_pkgs = ['chromeos-config-bsp-brya-private'] |
| 87 | |
| 88 | # List of commits that will be uploaded with `repo upload` |
| 89 | repo_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 |
| 94 | coreboot_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. |
| 98 | depends = { |
| 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 | } |