blob: 70e8c2a13e422174047dcfb9b4a36ae1f5f9fd8e [file] [log] [blame]
Luis Hector Chavezdca9dd72018-06-12 12:56:30 -07001# -*- coding: utf-8 -*-
joychen3cb228e2013-06-12 12:13:13 -07002# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""Module contains constants shared across all other devserver modules."""
7
8#### Google Storage locations and names. ####
9# TODO (joyc) move the google storage filenames of artfacts here
Chris Sosa968a1062013-08-02 17:42:50 -070010CHANNELS = 'canary', 'dev', 'beta', 'stable'
joychenf8f07e22013-07-12 17:45:51 -070011GS_IMAGE_DIR = 'gs://chromeos-image-archive'
Simran Basi99e63c02014-05-20 10:39:52 -070012GS_LATEST_MASTER = '%(image_dir)s/%(board)s%(suffix)s/LATEST-master'
Gilad Arnold869e8ab2015-02-19 23:34:49 -080013GS_LATEST_BASE_VERSION = (
14 '%(image_dir)s/%(board)s%(suffix)s/LATEST-%(base_version)s')
Chris Sosaea734d92013-10-11 11:28:58 -070015IMAGE_DIR = '%(board)s%(suffix)s/%(version)s'
joychenf8f07e22013-07-12 17:45:51 -070016
17GS_RELEASES_DIR = 'gs://chromeos-releases'
18GS_CHANNEL_DIR = GS_RELEASES_DIR + '/%(channel)s-channel/%(board)s/'
19
Gilad Arnold995f1842015-02-19 23:49:16 -080020VERSION = r'[-0-9\.]+'
Simran Basief83d6a2014-08-28 14:32:01 -070021VERSION_RE = 'R%s' % VERSION
22
23STAGED_BUILD_REGEX = '/static/(?P<build>.*-.*/%s)/.*' % VERSION_RE
24
joychen3cb228e2013-06-12 12:13:13 -070025
26#### Local storage locations and names. ####
27AUTOTEST_DIR = 'autotest'
joychen921e1fb2013-06-28 11:12:20 -070028BASE_IMAGE_FILE = 'chromiumos_base_image.bin'
joychen25d25972013-07-30 14:54:16 -070029IMAGE_FILE = 'chromiumos_image.bin'
beepsc3d0f872013-07-31 21:50:40 -070030FACTORY_IMAGE_FILE = 'factory_test/chromiumos_factory_image.bin'
Mike Frysingera0e6a282016-09-01 17:29:08 -040031FACTORY_SHIM_IMAGE_FILE = 'factory_shim/factory_install_shim.bin'
joychen25d25972013-07-30 14:54:16 -070032RECOVERY_IMAGE_FILE = 'recovery_image.bin'
Luis Hector Chavezdca9dd72018-06-12 12:56:30 -070033SIGNED_IMAGE_FILE = 'signed_image.bin'
joychen921e1fb2013-06-28 11:12:20 -070034TEST_IMAGE_FILE = 'chromiumos_test_image.bin'
joychen25d25972013-07-30 14:54:16 -070035
joychen121fc9b2013-08-02 14:30:30 -070036ALL_IMAGES = (
Gilad Arnold995f1842015-02-19 23:49:16 -080037 BASE_IMAGE_FILE,
38 IMAGE_FILE,
39 RECOVERY_IMAGE_FILE,
40 TEST_IMAGE_FILE,
joychen121fc9b2013-08-02 14:30:30 -070041)
42
joychen25d25972013-07-30 14:54:16 -070043#### Update files
44CACHE_DIR = 'cache'
45METADATA_FILE = 'update.meta'
David Zeuthen52ccd012013-10-31 12:58:26 -070046METADATA_HASH_FILE = 'metadata_hash'
joychen25d25972013-07-30 14:54:16 -070047STATEFUL_FILE = 'stateful.tgz'
48UPDATE_FILE = 'update.gz'
Gabe Black3b567202015-09-23 14:07:59 -070049
50#### Android files
51ANDROID_BOOT_IMAGE_FILE = 'boot.img'
52ANDROID_SYSTEM_IMAGE_FILE = 'system.img'
53ANDROID_FASTBOOT = 'fastboot'