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 | |
| 12 | # List of steps (named in step_names.py) to run in sequence to create |
| 13 | # the new variant of the baseboard |
| 14 | step_list = [ |
| 15 | step_names.CB_VARIANT, |
| 16 | step_names.CB_CONFIG, |
| 17 | step_names.ADD_FIT, |
| 18 | step_names.GEN_FIT, |
| 19 | step_names.COMMIT_FIT, |
| 20 | step_names.EC_IMAGE, |
| 21 | step_names.EC_BUILDALL, |
| 22 | step_names.ADD_YAML, |
| 23 | step_names.BUILD_YAML, |
| 24 | step_names.EMERGE, |
| 25 | step_names.PUSH, |
| 26 | step_names.UPLOAD, |
| 27 | step_names.FIND, |
| 28 | step_names.CQ_DEPEND, |
| 29 | step_names.CLEAN_UP] |
| 30 | |
| 31 | # Package name for FSP |
| 32 | fsp = 'intel-cmlfsp' |
| 33 | |
| 34 | # Package name for the fitimage |
| 35 | fitimage_pkg = 'coreboot-private-files-hatch' |
| 36 | |
| 37 | # Directory for fitimage; append '~/trunk/src/'' in chroot, '~/chromiumos/src' outside |
| 38 | fitimage_dir = 'private-overlays/baseboard-hatch-private/sys-boot/coreboot-private-files-hatch' |
| 39 | |
| 40 | # List of packages to cros_workon |
| 41 | workon_pkgs = ['coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp, |
| 42 | fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-hatch-private'] |
| 43 | |
| 44 | # The emerge command |
| 45 | emerge_cmd = 'emerge-hatch' |
| 46 | |
| 47 | # List of packages to emerge |
| 48 | emerge_pkgs = ['coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp, |
| 49 | fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-hatch-private', |
| 50 | 'chromeos-config', 'chromeos-config-bsp', 'chromeos-config-bsp-hatch', |
| 51 | 'coreboot-private-files', fitimage_pkg, 'chromeos-bootimage'] |
| 52 | |
| 53 | # List of packages to emerge just to build the yaml |
| 54 | yaml_emerge_pkgs = ['chromeos-config-bsp', 'chromeos-config', |
| 55 | 'chromeos-config-bsp-hatch', 'chromeos-config-bsp-hatch-private'] |
| 56 | |
| 57 | # Directory for the private yaml file |
| 58 | private_yaml_dir = '~/trunk/src/private-overlays/overlay-hatch-private/'\ |
| 59 | 'chromeos-base/chromeos-config-bsp-hatch-private' |