[PATCH v2] arm: rust: Enable Rust support for ARMv7

Alice Ryhl aliceryhl at google.com
Thu Jul 4 02:04:41 PDT 2024


On Thu, Jul 4, 2024 at 10:42 AM Ard Biesheuvel <ardb at kernel.org> wrote:
>
> On Thu, 4 Jul 2024 at 10:20, Alice Ryhl <aliceryhl at google.com> wrote:
> >
> > On Mon, Jun 17, 2024 at 6:04 PM Christian Schrefl
> > <chrisi.schrefl at gmail.com> wrote:
> > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> > > index 71afdd98ddf2..9cc10e32e8be 100644
> > > --- a/arch/arm/Makefile
> > > +++ b/arch/arm/Makefile
> > > @@ -150,6 +150,7 @@ endif
> > >  KBUILD_CPPFLAGS        +=$(cpp-y)
> > >  KBUILD_CFLAGS  +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm
> > >  KBUILD_AFLAGS  +=$(CFLAGS_ABI) $(AFLAGS_ISA) -Wa,$(arch-y) $(tune-y) -include asm/unified.h -msoft-float
> > > +KBUILD_RUSTFLAGS += --target=arm-unknown-linux-gnueabi
> >
> > On arm64 we use a target called aarch64-unknown-none. Should you also
> > be using arm-unknown-none? Or maybe the arm64 target should be changed
> > to aarch64-unknown-linux-gnueabi?
> >
>
> Neither. EABI is highly specific to 32-bit ARM, no point in trying to
> align this between architectures.

Ok. Thanks for the clarification.

Alice



More information about the linux-arm-kernel mailing list