# 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() { if [ "${DEFAULT_GROUP}" == "developer" ]; then echo "https://storage.googleapis.com/flatcar-jenkins/${DEFAULT_GROUP}/boards/${BOARD}/${FLATCAR_VERSION}/$1" else echo "https://storage.googleapis.com/flatcar-jenkins/boards/${BOARD}/${FLATCAR_VERSION_ID}/$1" fi } configure_dev_portage() { # Need profiles at the bare minimum local repo for repo in portage-stable coreos-overlay; do sudo mkdir -p "$1/var/lib/portage/${repo}" sudo rsync -rtl --exclude=md5-cache \ "${SRC_ROOT}/third_party/${repo}/metadata" \ "${SRC_ROOT}/third_party/${repo}/profiles" \ "$1/var/lib/portage/${repo}" done sudo mkdir -p "$1/etc/portage/repos.conf" sudo_clobber "$1/etc/portage/make.conf" <