1#!/bin/bash -xe 2# 3# Purpose: 4# This script is responsible for building all CI machines to get a 5# new CI systems sstate and download caches setup. 6# 7# This script assumes openbmc-build-scripts has been cloned into 8# the WORKSPACE directory. 9# 10# Required Inputs: 11# WORKSPACE: Directory to run the builds out of 12 13export LANG=en_US.UTF8 14 15cd "${WORKSPACE}" 16git clone https://github.com/openbmc/openbmc.git 17 18# Ensure everything is built on same filesystem 19export build_dir="${WORKSPACE}/build" 20 21SEED_MACHINES=( 22 gsj 23 palmetto 24 rainier 25 romulus 26 tiogapass 27 witherspoon 28 yosemitev2 29 zaius 30) 31 32for m in "${SEED_MACHINES[@]}"; do 33 echo "Seeding $m" 34 export target=$m 35 "${WORKSPACE}/openbmc-build-scripts/build-setup.sh" || \ 36 echo "Build failed for $m; continuing." 37 rm -rf "${WORKSPACE}/openbmc/build" 38done 39