Kbuild: add Rust support
authorMiguel Ojeda <ojeda@kernel.org>
Sat, 3 Jul 2021 14:42:57 +0000 (16:42 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 17 Jan 2022 02:24:19 +0000 (03:24 +0100)
commit5d287d7e9c9bd455f8eb9abf80f320927433e168
tree054e5c3884ca87e2fcaed8d37558fa0b5281683f
parent78b471443e278281048081e39e8d6d3097920812
Kbuild: add Rust support

Having all the new files in place, we now enable Rust support
in the build system, including `Kconfig` entries related to Rust,
the Rust configuration printer, the target definition files,
the version detection script and a few other bits.

In the future, we will likely want to generate the target files
on the fly via a script.

Co-developed-by: Alex Gaynor <alex.gaynor@gmail.com>
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-developed-by: Finn Behrens <me@kloenk.de>
Signed-off-by: Finn Behrens <me@kloenk.de>
Co-developed-by: Adam Bratschi-Kaye <ark.email@gmail.com>
Signed-off-by: Adam Bratschi-Kaye <ark.email@gmail.com>
Co-developed-by: Wedson Almeida Filho <wedsonaf@google.com>
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
Co-developed-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Co-developed-by: Sven Van Asbroeck <thesven73@gmail.com>
Signed-off-by: Sven Van Asbroeck <thesven73@gmail.com>
Co-developed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Gary Guo <gary@garyguo.net>
Co-developed-by: Boris-Chengbiao Zhou <bobo1239@web.de>
Signed-off-by: Boris-Chengbiao Zhou <bobo1239@web.de>
Co-developed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Co-developed-by: Douglas Su <d0u9.su@outlook.com>
Signed-off-by: Douglas Su <d0u9.su@outlook.com>
Co-developed-by: Dariusz Sosnowski <dsosnowski@dsosnowski.pl>
Signed-off-by: Dariusz Sosnowski <dsosnowski@dsosnowski.pl>
Co-developed-by: Antonio Terceiro <antonio.terceiro@linaro.org>
Signed-off-by: Antonio Terceiro <antonio.terceiro@linaro.org>
Co-developed-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
28 files changed:
.gitignore
.rustfmt.toml [new file with mode: 0644]
Makefile
arch/arm/rust/target.json [new file with mode: 0644]
arch/arm64/rust/target.json [new file with mode: 0644]
arch/powerpc/rust/target.json [new file with mode: 0644]
arch/riscv/Makefile
arch/riscv/rust/rv32ima.json [new file with mode: 0644]
arch/riscv/rust/rv32imac.json [new file with mode: 0644]
arch/riscv/rust/rv64ima.json [new file with mode: 0644]
arch/riscv/rust/rv64imac.json [new file with mode: 0644]
arch/x86/rust/target.json [new file with mode: 0644]
init/Kconfig
lib/Kconfig.debug
rust/.gitignore [new file with mode: 0644]
rust/Makefile [new file with mode: 0644]
rust/bindgen_parameters [new file with mode: 0644]
scripts/Kconfig.include
scripts/Makefile.build
scripts/Makefile.debug
scripts/Makefile.lib
scripts/Makefile.modfinal
scripts/cc-version.sh
scripts/is_rust_module.sh [new file with mode: 0755]
scripts/kconfig/confdata.c
scripts/min-tool-version.sh
scripts/rust-is-available-bindgen-libclang.h [new file with mode: 0644]
scripts/rust-is-available.sh [new file with mode: 0755]