Andrew Geissler | d51439f | 2021-02-22 16:14:27 -0600 | [diff] [blame^] | 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 | |
| 13 | export LANG=en_US.UTF8 |
| 14 | |
| 15 | cd ${WORKSPACE} |
| 16 | git clone https://github.com/openbmc/openbmc.git |
| 17 | |
| 18 | # Ensure everything is built on same filesystem |
| 19 | export build_dir=${WORKSPACE}/build |
| 20 | |
| 21 | export target=rainier |
| 22 | ${WORKSPACE}/openbmc-build-scripts/build-setup.sh |
| 23 | rm -rf ${WORKSPACE}/openbmc/build |
| 24 | |
| 25 | export target=gsj |
| 26 | ${WORKSPACE}/openbmc-build-scripts/build-setup.sh |
| 27 | rm -rf ${WORKSPACE}/openbmc/build |
| 28 | |
| 29 | export target=palmetto |
| 30 | ${WORKSPACE}/openbmc-build-scripts/build-setup.sh |
| 31 | rm -rf ${WORKSPACE}/openbmc/build |
| 32 | |
| 33 | export target=romulus |
| 34 | ${WORKSPACE}/openbmc-build-scripts/build-setup.sh |
| 35 | rm -rf ${WORKSPACE}/openbmc/build |
| 36 | |
| 37 | export target=witherspoon |
| 38 | ${WORKSPACE}/openbmc-build-scripts/build-setup.sh |
| 39 | rm -rf ${WORKSPACE}/openbmc/build |
| 40 | |
| 41 | export target=tiogapass |
| 42 | ${WORKSPACE}/openbmc-build-scripts/build-setup.sh |
| 43 | rm -rf ${WORKSPACE}/openbmc/build |
| 44 | |
| 45 | export target=zaius |
| 46 | ${WORKSPACE}/openbmc-build-scripts/build-setup.sh |
| 47 | rm -rf ${WORKSPACE}/openbmc/build |