blob: e2b81c7035b9d3a61a677241efa4ee483e7cdc0a [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This module contains common constants for factory bundle process."""
import logging
import os
# Keep constants in ascending alphabetical order
AU_GEN = ''
BIOS_NAME = {'x86-alex': 'bios.bin', 'stumpy': 'bios.bin'}
EC_NAME = {'x86-alex': 'ec.bin'}
EC2_NAME = {'x86-alex': 'Alex_EC_VFA616M.bin'}
# TODO(benwin) update to production value once it is determined
GSD_BUCKET = 'gs://chromeos-download-test'
IMAGE_GSD_BUCKET = 'gs://chromeos-releases'
IMAGE_SERVER_PREFIX = 'http://chromeos-images/chromeos-official'
MOUNT_POINT = '/tmp/m'
SUDO_DIR = '/usr/local/sbin'
WORKDIR = '/usr/local/google/cros_bundle/tmp'
# GITDIR should be defined after WORKDIR
GITDIR = os.path.join(WORKDIR, 'vboot_reference')
class BundlingError(Exception):
"""Common exception for bundling process errors."""
def __init__(self, reason):
Exception.__init__(self, reason)
logging.error('Script exiting due to:\n' + reason + '\n')