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

Andrew Lunn andrew at lunn.ch
Mon Oct 16 14:47:48 PDT 2023


> --- a/arch/x86/Makefile
> +++ b/arch/x86/Makefile
> @@ -68,6 +68,7 @@ export BITS
>  #    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53383
>  #
>  KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx
> +KBUILD_RUSTFLAGS += --target=$(objtree)/scripts/target.json

It seems odd that adding arm64 support requires adding to the x86
Makefile.

Should this be moved into a patch of its own explaining why it is
needed? Do the refactoring first, then add support for a new
architecture?

	Andrew



More information about the linux-arm-kernel mailing list