[PATCH 10/11] devtools: add RISC-V to test-meson-builds.sh
Stanislaw Kardach
kda at semihalf.com
Thu May 5 19:30:02 CEST 2022
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).
Signed-off-by: Stanislaw Kardach <kda at semihalf.com>
Sponsored-by: Frank Zhao <Frank.Zhao at starfivetech.com>
Sponsored-by: Sam Grove <sam.grove at sifive.com>
---
devtools/test-meson-builds.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index a653b253cb..12513e9d7f 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -275,6 +275,12 @@ for f in $srcdir/config/ppc/ppc* ; do
build $targetdir $f ABI $use_shared
done
+# RISC-V configurations
+for f in $srcdir/config/riscv/riscv* ; do
+ targetdir=build-$(basename $f | tr '_' '-' | cut -d'-' -f-2)
+ build $targetdir $f ABI $use_shared
+done
+
# 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
--
2.30.2
More information about the dev
mailing list