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>
Fri, 11 Feb 2022 19:43:14 +0000 (20:43 +0100)
commit17295a6760d551958a773a8342cff03630f3bff8
treee78147de12ed4c6aa53e2fa9e147748ce589ff60
parent628714b2457b73f3541cf02459a50490b84fe103
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>
Co-developed-by: Miguel Cano <macanroj@gmail.com>
Signed-off-by: Miguel Cano <macanroj@gmail.com>
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]