Re: [PATCH] loongarch: rust: Switch to use built-in rustc target

From: Miguel Ojeda
Date: Mon Mar 04 2024 - 11:08:12 EST


On Mon, Mar 4, 2024 at 3:14 PM WANG Rui <wangrui@xxxxxxxxxxx> wrote:
>
> This commit switches to using the built-in rustc
> loongarch64-unknown-none-softfloat target for LoongArch.
>
> The Rust samples have been tested with this commit.
>
> Signed-off-by: WANG Rui <wangrui@xxxxxxxxxxx>
> ---
> base-commit: ("rust: Refactor the build target to allow the use of builtin targets")

I couldn't apply it on top of commit f82811e22b48 in arm64's tree
(which is the base? -- the offset differs significantly in the arch
Makefile), but I nevertheless applied it manually on top of that one,
build-tested it for loongarch64 and boot-tested it for x86_64:

Acked-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Tested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>

Thanks!

Cheers,
Miguel