# Copyright (c) 2012 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. get_binhost_url() { local binhost_base=$1 local image_group=$2 local image_path=$3 if [ "${image_group}" == "developer" ]; then echo "${binhost_base}/${image_group}/boards/${BOARD}/${FLATCAR_VERSION}/${image_path}" else echo "${binhost_base}/boards/${BOARD}/${FLATCAR_VERSION_ID}/${image_path}" fi } configure_dev_portage() { local root_fs_dir="${1}"; shift local binhost="${1}"; shift local update_group="${1}"; shift # Need profiles at the bare minimum local repo for repo in portage-stable coreos-overlay; do sudo mkdir -p "${root_fs_dir}/var/lib/portage/${repo}" sudo rsync -rtl --exclude=md5-cache \ "${SRC_ROOT}/third_party/${repo}/metadata" \ "${SRC_ROOT}/third_party/${repo}/profiles" \ "${root_fs_dir}/var/lib/portage/${repo}" done sudo mkdir -p "${root_fs_dir}/etc/portage/repos.conf" sudo_clobber "${root_fs_dir}/etc/portage/make.conf" <