[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72=U3A-5LfbOThPoex9PfFg+UsHuMY33nbtLH=aK=odh0Q@mail.gmail.com>
Date: Sat, 12 Feb 2022 19:57:02 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>
Cc: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Antonio Terceiro <antonio.terceiro@...aro.org>,
Albert Ou <aou@...s.berkeley.edu>,
Adam Bratschi-Kaye <ark.email@...il.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Boris-Chengbiao Zhou <bobo1239@....de>,
Boqun Feng <boqun.feng@...il.com>,
Borislav Petkov <bp@...en8.de>,
Catalin Marinas <catalin.marinas@....com>,
Douglas Su <d0u9.su@...look.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Dariusz Sosnowski <dsosnowski@...snowski.pl>,
Daniel Xu <dxu@...uu.xyz>, Gary Guo <gary@...yguo.net>,
Greg KH <gregkh@...uxfoundation.org>,
"H. Peter Anvin" <hpa@...or.com>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-riscv <linux-riscv@...ts.infradead.org>,
Russell King - ARM Linux admin <linux@...linux.org.uk>,
linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
Miguel CaƱo <macanroj@...il.com>,
Masahiro Yamada <masahiroy@...nel.org>,
Finn Behrens <me@...enk.de>,
Michal Marek <michal.lkml@...kovi.net>,
Ingo Molnar <mingo@...hat.com>,
Michael Ellerman <mpe@...erman.id.au>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Paul Mackerras <paulus@...ba.org>,
rust-for-linux <rust-for-linux@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Sven Van Asbroeck <thesven73@...il.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Wedson Almeida Filho <wedsonaf@...gle.com>,
Will Deacon <will@...nel.org>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>
Subject: Re: [PATCH v4 16/20] Kbuild: add Rust support
Hi John Paul,
On Sat, Feb 12, 2022 at 7:27 PM John Paul Adrian Glaubitz
<glaubitz@...sik.fu-berlin.de> wrote:
>
> Is there any particular reason why this list excludes MIPS*, i386, big-endian
> PowerPC and SPARC targets which are already supported by the Rust programming
> language?
The variations we have so far were intended to showcase the Rust
support in several major architectures, rather than cover everything.
But as long as LLVM (& the kernel, i.e. ClangBuiltLinux) supports the
target (and as long there are no compiler/toolchain issues), you
should be able to try it.
> Are the arch/$ARCH/rust/target.json files everything that's needed for supporting
> the other targets?
Mostly -- there is also `rust/kernel/c_types.rs` and you may need to
tweak `rust/compiler_builtins.rs`, but not much more.
Note that for the target spec files, the short-term plan is to
generate dynamically the target spec file according to what the
architecture requests, instead of using these static files. Longer
term, we need a Rust-stable way to setup custom targets from upstream
`rustc` (though it is not clear yet how it will look, e.g. it could be
via command-line flags).
Cheers,
Miguel
Powered by blists - more mailing lists