diff --git a/ci/buildroot/buildroot-reqs-aarch64.txt b/ci/buildroot/buildroot-reqs-aarch64.txt new file mode 100644 index 0000000000..080e3163df --- /dev/null +++ b/ci/buildroot/buildroot-reqs-aarch64.txt @@ -0,0 +1 @@ +lld diff --git a/ci/buildroot/buildroot-reqs-ppc64le.txt b/ci/buildroot/buildroot-reqs-ppc64le.txt new file mode 100644 index 0000000000..080e3163df --- /dev/null +++ b/ci/buildroot/buildroot-reqs-ppc64le.txt @@ -0,0 +1 @@ +lld diff --git a/ci/buildroot/buildroot-reqs-x86_64.txt b/ci/buildroot/buildroot-reqs-x86_64.txt new file mode 100644 index 0000000000..080e3163df --- /dev/null +++ b/ci/buildroot/buildroot-reqs-x86_64.txt @@ -0,0 +1 @@ +lld diff --git a/ci/buildroot/buildroot-reqs.txt b/ci/buildroot/buildroot-reqs.txt index bf3db9c8bd..afe92d4b73 100644 --- a/ci/buildroot/buildroot-reqs.txt +++ b/ci/buildroot/buildroot-reqs.txt @@ -43,7 +43,7 @@ attr gjs # Also, add clang since it's useful at least in CI for C/C++ projects -clang lld +clang # And the tools such as clang-format, used for style checking clang-tools-extra # All C/C++ projects should have CI that uses the sanitizers diff --git a/ci/buildroot/install-buildroot.sh b/ci/buildroot/install-buildroot.sh index 6de1d78a57..5176f1d896 100755 --- a/ci/buildroot/install-buildroot.sh +++ b/ci/buildroot/install-buildroot.sh @@ -6,9 +6,15 @@ set -euo pipefail dn=$(dirname "$0") tmpd=$(mktemp -d) && trap 'rm -rf ${tmpd}' EXIT +arch=$(arch) + echo "Installing base build requirements" dnf -y install /usr/bin/xargs 'dnf-command(builddep)' deps=$(grep -v '^#' "${dn}"/buildroot-reqs.txt) +if [ -f "${dn}/buildroot-reqs-${arch}.txt" ]; then + deps+=" " + deps+=$(grep -v '^#' "${dn}/buildroot-reqs-${arch}.txt") +fi echo "${deps}" | xargs dnf -y install echo "Installing build dependencies of primary packages"