blob: 70e8c2a13e422174047dcfb9b4a36ae1f5f9fd8e [file] [log] [blame]
Luis Hector Chavezdca9dd72018-06-12 19:56:301# -*- coding: utf-8 -*-
joychen3cb228e2013-06-12 19:13:132# 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-03 00:42:5010CHANNELS = 'canary', 'dev', 'beta', 'stable'
joychenf8f07e22013-07-13 00:45:5111GS_IMAGE_DIR = 'gs://chromeos-image-archive'
Simran Basi99e63c02014-05-20 17:39:5212GS_LATEST_MASTER = '%(image_dir)s/%(board)s%(suffix)s/LATEST-master'
Gilad Arnold869e8ab2015-02-20 07:34:4913GS_LATEST_BASE_VERSION = (
14 '%(image_dir)s/%(board)s%(suffix)s/LATEST-%(base_version)s')
Chris Sosaea734d92013-10-11 18:28:5815IMAGE_DIR = '%(board)s%(suffix)s/%(version)s'
joychenf8f07e22013-07-13 00:45:5116
17GS_RELEASES_DIR = 'gs://chromeos-releases'
18GS_CHANNEL_DIR = GS_RELEASES_DIR + '/%(channel)s-channel/%(board)s/'
19
Gilad Arnold995f1842015-02-20 07:49:1620VERSION = r'[-0-9\.]+'
Simran Basief83d6a2014-08-28 21:32:0121VERSION_RE = 'R%s' % VERSION
22
23STAGED_BUILD_REGEX = '/static/(?P<build>.*-.*/%s)/.*' % VERSION_RE
24
joychen3cb228e2013-06-12 19:13:1325
26#### Local storage locations and names. ####
27AUTOTEST_DIR = 'autotest'
joychen921e1fb2013-06-28 18:12:2028BASE_IMAGE_FILE = 'chromiumos_base_image.bin'
joychen25d25972013-07-30 21:54:1629IMAGE_FILE = 'chromiumos_image.bin'
beepsc3d0f872013-08-01 04:50:4030FACTORY_IMAGE_FILE = 'factory_test/chromiumos_factory_image.bin'
Mike Frysingera0e6a282016-09-01 21:29:0831FACTORY_SHIM_IMAGE_FILE = 'factory_shim/factory_install_shim.bin'
joychen25d25972013-07-30 21:54:1632RECOVERY_IMAGE_FILE = 'recovery_image.bin'
Luis Hector Chavezdca9dd72018-06-12 19:56:3033SIGNED_IMAGE_FILE = 'signed_image.bin'
joychen921e1fb2013-06-28 18:12:2034TEST_IMAGE_FILE = 'chromiumos_test_image.bin'
joychen25d25972013-07-30 21:54:1635
joychen121fc9b2013-08-02 21:30:3036ALL_IMAGES = (
Gilad Arnold995f1842015-02-20 07:49:1637 BASE_IMAGE_FILE,
38 IMAGE_FILE,
39 RECOVERY_IMAGE_FILE,
40 TEST_IMAGE_FILE,
joychen121fc9b2013-08-02 21:30:3041)
42
joychen25d25972013-07-30 21:54:1643#### Update files
44CACHE_DIR = 'cache'
45METADATA_FILE = 'update.meta'
David Zeuthen52ccd012013-10-31 19:58:2646METADATA_HASH_FILE = 'metadata_hash'
joychen25d25972013-07-30 21:54:1647STATEFUL_FILE = 'stateful.tgz'
48UPDATE_FILE = 'update.gz'
Gabe Black3b567202015-09-23 21:07:5949
50#### Android files
51ANDROID_BOOT_IMAGE_FILE = 'boot.img'
52ANDROID_SYSTEM_IMAGE_FILE = 'system.img'
53ANDROID_FASTBOOT = 'fastboot'