forked from roc-streaming/roc-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roc-streaminggh-636: 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
- Loading branch information
1 parent
25a6ba9
commit 582fdea
Showing
8 changed files
with
88 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux -o 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} | ||
|
||
"$( dirname "$0" )"/run-tests-in-qemu.sh "$toolchain" "$compiler" "$cpu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-10.3.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux -o 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} | ||
|
||
"$( dirname "$0" )"/run-tests-in-qemu.sh "$toolchain" "$compiler" "$cpu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
scripts/ci_checks/linux-arm/arm-linux-gnueabihf-gcc-7.4.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux -o 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} | ||
|
||
"$( dirname "$0" )"/run-tests-in-qemu.sh "$toolchain" "$compiler" "$cpu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux -o pipefail | ||
|
||
toolchain="${1:?arg1 missing: toolchain}" | ||
compiler="${2:?arg2 missing: compiler}" | ||
cpu="${3:?arg3 missing: QEMU CPU model}" | ||
|
||
case "$toolchain" in | ||
(aarch64*) qemu_cmd=qemu-aarch64 ;; | ||
(arm*) qemu_cmd=qemu-arm ;; | ||
(*) | ||
echo >&2 "Error: unsupported arch to run tests in QEMU; toolchain: $toolchain." | ||
exit 1 | ||
esac | ||
readonly qemu_cmd | ||
|
||
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_cmd" -L "/opt/sysroot" -cpu "$cpu" "$tst" | ||
done |