[PATCH] build: riscv is not a valid -march value
Tummala, Sivaprasad
Sivaprasad.Tummala at amd.com
Wed Nov 22 14:27:05 CET 2023
[AMD Official Use Only - General]
> -----Original Message-----
> From: christian.ehrhardt at canonical.com <christian.ehrhardt at canonical.com>
> Sent: Tuesday, November 21, 2023 10:19 PM
> To: dev <dev at dpdk.org>; Thomas Monjalon <thomas at monjalon.net>
> Cc: Luca Boccassi <bluca at debian.org>; Christian Ehrhardt
> <christian.ehrhardt at canonical.com>
> Subject: [PATCH] build: riscv is not a valid -march value
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> From: Christian Ehrhardt <christian.ehrhardt at canonical.com>
>
> If building riscv natively with -Dplatform=generic config/meson.build will select
> cpu_instruction_set=riscv.
>
> That was fine because config/riscv/meson.build did override it to valid values later,
> but since b7676fcccab4 ("config: verify machine arch
> flag") it will break the build as it tries to test -march=riscv which is not a value
> value.
>
> The generic setting used in most cases is rv64gc, set this here as well.
>
> Fixes: b7676fcccab4 ("config: verify machine arch flag"
> Fixes: f22e705ebf12 ("eal/riscv: support RISC-V architecture")
>
> Signed-off-by: Christian Ehrhardt <christian.ehrhardt at canonical.com>
> ---
> config/meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/config/meson.build b/config/meson.build index
> d732154731..a9ccd56deb 100644
> --- a/config/meson.build
> +++ b/config/meson.build
> @@ -152,7 +152,7 @@ if cpu_instruction_set == 'generic'
> elif host_machine.cpu_family().startswith('ppc')
> cpu_instruction_set = 'power8'
> elif host_machine.cpu_family().startswith('riscv')
> - cpu_instruction_set = 'riscv'
> + cpu_instruction_set = 'rv64gc'
> endif
> endif
>
> --
> 2.34.1
LGTM!
Acked-by: Sivaprasad Tummala <sivaprasad.tummala at amd.com>
More information about the dev
mailing list