Paul Fagerburg | bab5dde | 2020-01-10 15:10:29 -0700 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | """Define steps, package names, and directories for creating a Hatch variant |
| 3 | |
| 4 | Copyright 2020 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 | |
Paul Fagerburg | e868e83 | 2020-01-22 17:14:04 -0700 | [diff] [blame] | 12 | # Name of the baseboard |
| 13 | base = 'hatch' |
| 14 | |
Paul Fagerburg | bab5dde | 2020-01-10 15:10:29 -0700 | [diff] [blame] | 15 | # List of steps (named in step_names.py) to run in sequence to create |
| 16 | # the new variant of the baseboard |
| 17 | step_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 | |
Paul Fagerburg | 4d34345 | 2020-01-24 15:23:53 -0700 | [diff] [blame^] | 34 | # Base directory for coreboot |
| 35 | coreboot_dir = 'third_party/coreboot' |
| 36 | |
| 37 | # Base directory for coreboot configs (None=use default) |
| 38 | cb_config_dir = None |
| 39 | |
Paul Fagerburg | bab5dde | 2020-01-10 15:10:29 -0700 | [diff] [blame] | 40 | # Package name for FSP |
| 41 | fsp = 'intel-cmlfsp' |
| 42 | |
| 43 | # Package name for the fitimage |
| 44 | fitimage_pkg = 'coreboot-private-files-hatch' |
| 45 | |
| 46 | # Directory for fitimage; append '~/trunk/src/'' in chroot, '~/chromiumos/src' outside |
| 47 | fitimage_dir = 'private-overlays/baseboard-hatch-private/sys-boot/coreboot-private-files-hatch' |
| 48 | |
Paul Fagerburg | 55dabf4 | 2020-01-27 15:30:09 -0700 | [diff] [blame] | 49 | # Explanation of gen_fit_image command |
| 50 | fitimage_cmd = './gen_fit_image.sh %s <path_to_fit_kit> [-b]' |
| 51 | |
Paul Fagerburg | bab5dde | 2020-01-10 15:10:29 -0700 | [diff] [blame] | 52 | # List of packages to cros_workon |
| 53 | workon_pkgs = ['coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp, |
| 54 | fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-hatch-private'] |
| 55 | |
| 56 | # The emerge command |
| 57 | emerge_cmd = 'emerge-hatch' |
| 58 | |
| 59 | # List of packages to emerge |
| 60 | emerge_pkgs = ['coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp, |
| 61 | fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-hatch-private', |
| 62 | 'chromeos-config', 'chromeos-config-bsp', 'chromeos-config-bsp-hatch', |
| 63 | 'coreboot-private-files', fitimage_pkg, 'chromeos-bootimage'] |
| 64 | |
| 65 | # List of packages to emerge just to build the yaml |
| 66 | yaml_emerge_pkgs = ['chromeos-config-bsp', 'chromeos-config', |
| 67 | 'chromeos-config-bsp-hatch', 'chromeos-config-bsp-hatch-private'] |
| 68 | |
| 69 | # Directory for the private yaml file |
| 70 | private_yaml_dir = '~/trunk/src/private-overlays/overlay-hatch-private/'\ |
| 71 | 'chromeos-base/chromeos-config-bsp-hatch-private' |