diff --git a/_build-deps.yml b/_build-deps.yml index 855e845..fac886d 100644 --- a/_build-deps.yml +++ b/_build-deps.yml @@ -3,20 +3,33 @@ # - building qemu # steps: +# - bash: | +# sudo apt-get install -y build-essential autoconf bison flex \ +# texinfo help2man gawk libtool-bin libncurses5-dev git libtool \ +# gettext wget curl libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev \ +# lld-9 clang-9 cmake + + +# Untranslated dependencies: +# - libpixman-1-dev +# - libglib2.0-dev - bash: | - sudo apt-get install -y build-essential autoconf bison flex \ - texinfo help2man gawk libtool-bin libncurses5-dev git libtool \ - gettext wget curl libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev \ - lld-9 clang-9 cmake + source /hbb_exe/activate + sudo yum install -y bison flex texinfo help2man gawk ncurses-devel \ + ncurses-static gettext wget curl libfdt-devel displayName: 'Install build dependencies' - bash: | + source /hbb_exe/activate ./install-crosstool-ng.sh displayName: 'Build and install crosstool-ng' - bash: | set -e set -x + + source /hbb_exe/activate + git fetch --tags # git-describe --always almost does what we want, but we need to connect the diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7b672a7..c188d61 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,11 +14,17 @@ pr: include: - '*' +resources: + containers: + - container: holy-build-box + image: phusion/holy-build-box-64:latest + jobs: - job: "Toolchains_RV32IMC" displayName: "Toolchains targeting Ibex" pool: vmImage: "ubuntu-16.04" + container: holy-build-box timeoutInMinutes: 360 steps: - template: "_build-deps.yml" @@ -56,6 +62,7 @@ jobs: # correct versions as implemented by clang (B 0.92). pool: vmImage: "ubuntu-16.04" + container: holy-build-box timeoutInMinutes: 360 steps: - template: "_build-deps.yml" @@ -106,11 +113,12 @@ jobs: - template: "_upload-artifacts.yml" parameters: azure_name: rv32imcb-toolchains - + - job: "Toolchains_RV64IMAC" displayName: "GCC and Clang/LLVM toolchains targeting RV64IMAC (Muntjac)" pool: vmImage: "ubuntu-16.04" + container: holy-build-box timeoutInMinutes: 360 steps: - template: "_build-deps.yml" diff --git a/build-clang-with-args.sh b/build-clang-with-args.sh index 7133c23..bd00bd8 100755 --- a/build-clang-with-args.sh +++ b/build-clang-with-args.sh @@ -24,6 +24,8 @@ if ! [ "$#" -ge 3 ]; then exit 2 fi; +source /hbb_exe/activate + ## Take configuration from arguments # This is the name for the tar file. # Suggested to be the gcc config with s/gcc/clang/. Will be updated if it diff --git a/build-gcc-with-args.sh b/build-gcc-with-args.sh index bf4c62d..fd9a5e1 100755 --- a/build-gcc-with-args.sh +++ b/build-gcc-with-args.sh @@ -23,6 +23,8 @@ if ! [ "$#" -ge 3 ]; then exit 2 fi; +source /hbb_exe/activate + ## Take configuration from arguments # This is the name for the tar file, and also the basename of the .config file toolchain_name="${1}"