blob: 9baeffdf93a35acc5fa9f9dd0be3b4f442199ec8 [file] [log] [blame]
Andrew Geisslerd51439f2021-02-22 16:14:27 -06001#!/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
Patrick Williamse000d5d2021-03-15 14:50:49 -050015cd "${WORKSPACE}"
Andrew Geisslerd51439f2021-02-22 16:14:27 -060016git clone https://github.com/openbmc/openbmc.git
17
18# Ensure everything is built on same filesystem
Patrick Williamse000d5d2021-03-15 14:50:49 -050019export build_dir="${WORKSPACE}/build"
Andrew Geisslerd51439f2021-02-22 16:14:27 -060020
Patrick Williams247ae502021-04-13 08:16:13 -050021SEED_MACHINES=(
22 gsj
23 palmetto
24 rainier
25 romulus
26 tiogapass
27 witherspoon
28 yosemitev2
29 zaius
30)
31
Patrick Williamse000d5d2021-03-15 14:50:49 -050032for m in "${SEED_MACHINES[@]}"; do
33 echo "Seeding $m"
34 export target=$m
Patrick Williams6c420e72021-04-13 08:13:18 -050035 "${WORKSPACE}/openbmc-build-scripts/build-setup.sh" || \
36 echo "Build failed for $m; continuing."
Patrick Williamse000d5d2021-03-15 14:50:49 -050037 rm -rf "${WORKSPACE}/openbmc/build"
38done