diff mbox series

[v2,7/8] devtools: add RISC-V to test-meson-builds.sh

Message ID 20220510150759.525434-8-kda@semihalf.com (mailing list archive)
State Superseded
Delegated to: Thomas Monjalon
Headers show
Series Introduce support for RISC-V architecture | expand

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Stanisław Kardach May 10, 2022, 3:07 p.m. UTC
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>
---
 devtools/test-meson-builds.sh | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stanisław Kardach May 10, 2022, 3:35 p.m. UTC | #1
On Tue, May 10, 2022 at 5:08 PM Stanislaw Kardach <kda@semihalf.com> wrote:

> 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>
> ---
>  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
> +
>
This should not be an iteration but a single build command. I'll re-send as
v3.

>  # 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
>
diff mbox series

Patch

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