On Tue, Sep 27, 2022 at 03:14:54PM +0200, Miguel Ojeda wrote: > Having most of the new files in place, we now enable Rust support > in the build system, including `Kconfig` entries related to Rust, > the Rust configuration printer and a few other bits. > > Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx> > Reviewed-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> > Tested-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> > Co-developed-by: Alex Gaynor <alex.gaynor@xxxxxxxxx> > Signed-off-by: Alex Gaynor <alex.gaynor@xxxxxxxxx> > Co-developed-by: Finn Behrens <me@xxxxxxxxx> > Signed-off-by: Finn Behrens <me@xxxxxxxxx> > Co-developed-by: Adam Bratschi-Kaye <ark.email@xxxxxxxxx> > Signed-off-by: Adam Bratschi-Kaye <ark.email@xxxxxxxxx> > Co-developed-by: Wedson Almeida Filho <wedsonaf@xxxxxxxxxx> > Signed-off-by: Wedson Almeida Filho <wedsonaf@xxxxxxxxxx> > Co-developed-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> > Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> > Co-developed-by: Sven Van Asbroeck <thesven73@xxxxxxxxx> > Signed-off-by: Sven Van Asbroeck <thesven73@xxxxxxxxx> > Co-developed-by: Gary Guo <gary@xxxxxxxxxxx> > Signed-off-by: Gary Guo <gary@xxxxxxxxxxx> > Co-developed-by: Boris-Chengbiao Zhou <bobo1239@xxxxxx> > Signed-off-by: Boris-Chengbiao Zhou <bobo1239@xxxxxx> > Co-developed-by: Boqun Feng <boqun.feng@xxxxxxxxx> > Signed-off-by: Boqun Feng <boqun.feng@xxxxxxxxx> > Co-developed-by: Douglas Su <d0u9.su@xxxxxxxxxxx> > Signed-off-by: Douglas Su <d0u9.su@xxxxxxxxxxx> > Co-developed-by: Dariusz Sosnowski <dsosnowski@xxxxxxxxxxxxx> > Signed-off-by: Dariusz Sosnowski <dsosnowski@xxxxxxxxxxxxx> > Co-developed-by: Antonio Terceiro <antonio.terceiro@xxxxxxxxxx> > Signed-off-by: Antonio Terceiro <antonio.terceiro@xxxxxxxxxx> > Co-developed-by: Daniel Xu <dxu@xxxxxxxxx> > Signed-off-by: Daniel Xu <dxu@xxxxxxxxx> > Co-developed-by: Björn Roy Baron <bjorn3_gh@xxxxxxxxxxxxxx> > Signed-off-by: Björn Roy Baron <bjorn3_gh@xxxxxxxxxxxxxx> > Co-developed-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx> > Signed-off-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx> > Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx> > --- > .gitignore | 2 + > Makefile | 172 ++++++++++++++- > arch/Kconfig | 6 + > include/linux/compiler_types.h | 6 +- > init/Kconfig | 46 +++- > kernel/configs/rust.config | 1 + > lib/Kconfig.debug | 34 +++ > rust/.gitignore | 8 + > rust/Makefile | 381 +++++++++++++++++++++++++++++++++ > rust/bindgen_parameters | 21 ++ > scripts/Kconfig.include | 6 +- > scripts/Makefile | 3 + > scripts/Makefile.build | 60 ++++++ > scripts/Makefile.debug | 8 + > scripts/Makefile.host | 34 ++- > scripts/Makefile.lib | 12 ++ > scripts/Makefile.modfinal | 8 +- > scripts/cc-version.sh | 12 +- > scripts/kconfig/confdata.c | 75 +++++++ > 19 files changed, 869 insertions(+), 26 deletions(-) > create mode 100644 kernel/configs/rust.config > create mode 100644 rust/.gitignore > create mode 100644 rust/Makefile > create mode 100644 rust/bindgen_parameters Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>