blob: daedf4b10cb29f823b5a797b70ee8c28e1069ea9 [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}"
Patrick Williams07759722021-04-13 08:23:01 -050016if [ -d openbmc ]; then
17 git -C openbmc fetch
18 git -C openbmc rebase
19else
20 git clone https://github.com/openbmc/openbmc.git
21fi
Andrew Geisslerd51439f2021-02-22 16:14:27 -060022
23# Ensure everything is built on same filesystem
Patrick Williamse000d5d2021-03-15 14:50:49 -050024export build_dir="${WORKSPACE}/build"
Andrew Geisslerd51439f2021-02-22 16:14:27 -060025
Patrick Williams247ae502021-04-13 08:16:13 -050026SEED_MACHINES=(
James Athappilly6db439e2025-11-24 14:12:34 -080027 anacapa
Andrew Geissler5b2f4ab2023-02-01 13:35:09 -070028 bletchley
James Athappilly6db439e2025-11-24 14:12:34 -080029 bletchley15
Patrick Williams12837fc2024-07-26 12:02:20 -050030 catalina
Andrew Geissler5b2f4ab2023-02-01 13:35:09 -070031 e3c246d4i
Andrew Geissler7abdc412025-07-30 09:03:58 -050032 evb-npcm845
Andrew Geissler4ce45652025-09-10 13:57:54 -050033 gb200nvl-obmc
Andrew Geissler01370f22021-05-07 13:25:23 -050034 gbs
Patrick Williams22c33752023-11-27 13:22:26 -060035 harma
Patrick Williams04fde222023-11-27 21:08:57 -060036 minerva
Adriana Kobylak17c69ed2021-04-12 15:59:26 +000037 p10bmc
Patrick Williams247ae502021-04-13 08:16:13 -050038 romulus
James Athappilly6db439e2025-11-24 14:12:34 -080039 santabarbara
Patrick Williams12837fc2024-07-26 12:02:20 -050040 ventura
James Athappilly6db439e2025-11-24 14:12:34 -080041 ventura2
Patrick Williams247ae502021-04-13 08:16:13 -050042 witherspoon
Patrick Williams260e85d2023-08-07 07:26:03 -050043 yosemite4
James Athappilly6db439e2025-11-24 14:12:34 -080044 yosemite5
Patrick Williams247ae502021-04-13 08:16:13 -050045)
46
Patrick Williamse000d5d2021-03-15 14:50:49 -050047for m in "${SEED_MACHINES[@]}"; do
48 echo "Seeding $m"
49 export target=$m
Patrick Williams6c420e72021-04-13 08:13:18 -050050 "${WORKSPACE}/openbmc-build-scripts/build-setup.sh" || \
51 echo "Build failed for $m; continuing."
Patrick Williamse000d5d2021-03-15 14:50:49 -050052 rm -rf "${WORKSPACE}/openbmc/build"
Patrick Williams124607f2021-04-13 11:40:11 -050053 rm -rf "${build_dir}"
Patrick Williamse000d5d2021-03-15 14:50:49 -050054done