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

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Tue Oct 17 08:38:28 PDT 2023


On Mon, Oct 16, 2023 at 3:16 PM Jamie Cunliffe <Jamie.Cunliffe at arm.com> wrote:
>
> +KBUILD_RUSTFLAGS += --target aarch64-unknown-none -C target-feature="-neon"

For consistency with other flags we pass in Rust, please avoid the
space after `-C`.

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

This one in particular (LSE) came up in a Binder discussion yesterday.

Cheers,
Miguel



More information about the linux-arm-kernel mailing list