devtools: add RISC-V in build test

Validate RISC-V compilation when test-meson-builds.sh is called. The
check will be only performed if appropriate toolchain is present on the
system (same as with other architectures).

Sponsored-by: Frank Zhao <frank.zhao@starfivetech.com>
Sponsored-by: Sam Grove <sam.grove@sifive.com>
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
This commit is contained in:
Stanislaw Kardach 2022-06-07 12:46:16 +02:00 committed by David Marchand
parent f22e705ebf
commit 780d0cf850

View File

@ -275,6 +275,10 @@ for f in $srcdir/config/ppc/ppc* ; do
build $targetdir $f ABI $use_shared
done
# RISC-V configuration
build build-riscv64-linux-gcc $srcdir/config/riscv/riscv64_linux_gcc ABI \
$use_shared
# Test installation of the x86-generic target, to be used for checking
# the sample apps build using the pkg-config file for cflags and libs
load_env cc