blob: 84ef53ae388b9647b09bee03da4b1be79f22837b [file] [log] [blame]
joychen3cb228e2013-06-12 12:13:13 -07001# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""Module contains constants shared across all other devserver modules."""
6
7#### Google Storage locations and names. ####
8# TODO (joyc) move the google storage filenames of artfacts here
Chris Sosa968a1062013-08-02 17:42:50 -07009CHANNELS = 'canary', 'dev', 'beta', 'stable'
joychenf8f07e22013-07-12 17:45:51 -070010GS_IMAGE_DIR = 'gs://chromeos-image-archive'
Simran Basi99e63c02014-05-20 10:39:52 -070011GS_LATEST_MASTER = '%(image_dir)s/%(board)s%(suffix)s/LATEST-master'
Gilad Arnold869e8ab2015-02-19 23:34:49 -080012GS_LATEST_BASE_VERSION = (
13 '%(image_dir)s/%(board)s%(suffix)s/LATEST-%(base_version)s')
Chris Sosaea734d92013-10-11 11:28:58 -070014IMAGE_DIR = '%(board)s%(suffix)s/%(version)s'
joychenf8f07e22013-07-12 17:45:51 -070015
16GS_RELEASES_DIR = 'gs://chromeos-releases'
17GS_CHANNEL_DIR = GS_RELEASES_DIR + '/%(channel)s-channel/%(board)s/'
18
Gilad Arnold995f1842015-02-19 23:49:16 -080019VERSION = r'[-0-9\.]+'
Simran Basief83d6a2014-08-28 14:32:01 -070020VERSION_RE = 'R%s' % VERSION
21
22STAGED_BUILD_REGEX = '/static/(?P<build>.*-.*/%s)/.*' % VERSION_RE
23
joychen3cb228e2013-06-12 12:13:13 -070024
25#### Local storage locations and names. ####
26AUTOTEST_DIR = 'autotest'
joychen921e1fb2013-06-28 11:12:20 -070027BASE_IMAGE_FILE = 'chromiumos_base_image.bin'
joychen25d25972013-07-30 14:54:16 -070028IMAGE_FILE = 'chromiumos_image.bin'
beepsc3d0f872013-07-31 21:50:40 -070029FACTORY_IMAGE_FILE = 'factory_test/chromiumos_factory_image.bin'
joychen25d25972013-07-30 14:54:16 -070030RECOVERY_IMAGE_FILE = 'recovery_image.bin'
joychen921e1fb2013-06-28 11:12:20 -070031TEST_IMAGE_FILE = 'chromiumos_test_image.bin'
joychen25d25972013-07-30 14:54:16 -070032
joychen121fc9b2013-08-02 14:30:30 -070033ALL_IMAGES = (
Gilad Arnold995f1842015-02-19 23:49:16 -080034 BASE_IMAGE_FILE,
35 IMAGE_FILE,
36 RECOVERY_IMAGE_FILE,
37 TEST_IMAGE_FILE,
joychen121fc9b2013-08-02 14:30:30 -070038)
39
joychen25d25972013-07-30 14:54:16 -070040#### Update files
41CACHE_DIR = 'cache'
42METADATA_FILE = 'update.meta'
David Zeuthen52ccd012013-10-31 12:58:26 -070043METADATA_HASH_FILE = 'metadata_hash'
joychen25d25972013-07-30 14:54:16 -070044STATEFUL_FILE = 'stateful.tgz'
45UPDATE_FILE = 'update.gz'
Gabe Black3b567202015-09-23 14:07:59 -070046
47#### Android files
48ANDROID_BOOT_IMAGE_FILE = 'boot.img'
49ANDROID_SYSTEM_IMAGE_FILE = 'system.img'
50ANDROID_FASTBOOT = 'fastboot'