From 701a1eb7a228c57be78efc3f9a2a830fdb69128c Mon Sep 17 00:00:00 2001 From: Andrew Petelin Date: Sun, 23 Jun 2024 17:31:24 +0300 Subject: [PATCH] added new toolchains for ARM+GCC New toolcnains: - aarch64-linux-gnu-gcc-10.3 - arm-linux-gnueabihf-gcc-7.4 - arm-linux-gnueabihf-gcc-10.3 --- .github/workflows/build.yml | 9 ++++++++ .../linux-arm/aarch64-linux-gnu-gcc-10.3.sh | 23 +++++++++++++++++++ .../linux-arm/arm-linux-gnueabihf-gcc-10.3.sh | 23 +++++++++++++++++++ .../linux-arm/arm-linux-gnueabihf-gcc-7.4.sh | 23 +++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100755 scripts/ci_checks/linux-arm/aarch64-linux-gnu-gcc-10.3.sh create mode 100755 scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-10.3.sh create mode 100755 scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-7.4.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab0cd1806..76c63036e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,9 +89,18 @@ jobs: - script: linux-arm/aarch64-linux-gnu-gcc-7.4 image: rocstreaming/toolchain-aarch64-linux-gnu:gcc-7.4 + - script: linux-arm/aarch64-linux-gnu-gcc-10.3 + image: rocstreaming/toolchain-aarch64-linux-gnu:gcc-10.3 + - script: linux-arm/arm-linux-gnueabihf-gcc-4.9 image: rocstreaming/toolchain-arm-linux-gnueabihf:gcc-4.9 + - script: linux-arm/arm-linux-gnueabihf-gcc-7.4 + image: rocstreaming/toolchain-arm-linux-gnueabihf:gcc-7.4 + + - script: linux-arm/arm-linux-gnueabihf-gcc-10.3 + image: rocstreaming/toolchain-arm-linux-gnueabihf:gcc-10.3 + - script: linux-arm/arm-bcm2708hardfp-linux-gnueabi-gcc-4.7 image: rocstreaming/toolchain-arm-bcm2708hardfp-linux-gnueabi:gcc-4.7 diff --git a/scripts/ci_checks/linux-arm/aarch64-linux-gnu-gcc-10.3.sh b/scripts/ci_checks/linux-arm/aarch64-linux-gnu-gcc-10.3.sh new file mode 100755 index 000000000..f7b0f32f1 --- /dev/null +++ b/scripts/ci_checks/linux-arm/aarch64-linux-gnu-gcc-10.3.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -euxo pipefail + +toolchain="aarch64-none-linux-gnu" +compiler="gcc-10.3.1-release" +cpu="cortex-a53" # armv8 + +scons -Q \ + --enable-werror \ + --enable-tests \ + --enable-examples \ + --build-3rdparty=all,pulseaudio:10.0 \ + --host=${toolchain} + +find bin/${toolchain} -name 'roc-test-*' | \ + while read tst + do + LD_LIBRARY_PATH="/opt/sysroot/lib:$(echo \ + "${PWD}"/build/3rdparty/${toolchain}/${compiler}/*/rpath | tr ' ' ':')" \ + python3 scripts/scons_helpers/timeout-run.py 300 \ + qemu-aarch64 -L "/opt/sysroot" -cpu ${cpu} ${tst} + done diff --git a/scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-10.3.sh b/scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-10.3.sh new file mode 100755 index 000000000..52392dfd4 --- /dev/null +++ b/scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-10.3.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -euxo pipefail + +toolchain="arm-none-linux-gnueabihf" +compiler="gcc-10.3.1-release" +cpu="cortex-a15" # armv7 + +scons -Q \ + --enable-werror \ + --enable-tests \ + --enable-examples \ + --build-3rdparty=all,pulseaudio:8.0 \ + --host=${toolchain} + +find bin/${toolchain} -name 'roc-test-*' | \ + while read tst + do + LD_LIBRARY_PATH="/opt/sysroot/lib:$(echo \ + "${PWD}"/build/3rdparty/${toolchain}/${compiler}/*/rpath | tr ' ' ':')" \ + python3 scripts/scons_helpers/timeout-run.py 300 \ + qemu-arm -L "/opt/sysroot" -cpu ${cpu} ${tst} + done diff --git a/scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-7.4.sh b/scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-7.4.sh new file mode 100755 index 000000000..89db1bdb1 --- /dev/null +++ b/scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-7.4.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -euxo pipefail + +toolchain="arm-linux-gnueabihf" +compiler="gcc-7.4.1-release" +cpu="cortex-a15" # armv7 + +scons -Q \ + --enable-werror \ + --enable-tests \ + --enable-examples \ + --build-3rdparty=all,pulseaudio:8.0 \ + --host=${toolchain} + +find bin/${toolchain} -name 'roc-test-*' | \ + while read tst + do + LD_LIBRARY_PATH="/opt/sysroot/lib:$(echo \ + "${PWD}"/build/3rdparty/${toolchain}/${compiler}/*/rpath | tr ' ' ':')" \ + python3 scripts/scons_helpers/timeout-run.py 300 \ + qemu-arm -L "/opt/sysroot" -cpu ${cpu} ${tst} + done