[PATCH v3 1/1] arm64: rust: Enable Rust support for AArch64

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Tue Oct 17 10:47:11 PDT 2023


On Tue, Oct 17, 2023 at 5:38 PM Miguel Ojeda
<miguel.ojeda.sandonis at gmail.com> wrote:
>
> By the way, perhaps we could already add others like (untested):
>
>  ifeq ($(CONFIG_ARM64_USE_LSE_ATOMICS),y)
> +KBUILD_RUSTFLAGS += -Ctarget-feature="+lse"
>    ifneq ($(CONFIG_ARM64_LSE_ATOMICS),y)
>         @echo "warning: LSE atomics not supported by binutils" >&2
>    endif

Ignore this, sorry -- as Boqun reminded me, this uses an
`ALTERNATIVE`, rather than enable it unconditionally. See
https://github.com/Rust-for-Linux/linux/issues/970.

Cheers,
Miguel



More information about the linux-arm-kernel mailing list