forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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>
- Loading branch information
Showing
28 changed files
with
1,310 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| edition = "2021" | ||
| newline_style = "Unix" | ||
|
|
||
| # Unstable options that help catching some mistakes in formatting and that we may want to enable | ||
| # when they become stable. | ||
| # | ||
| # They are kept here since they are useful to run from time to time. | ||
| #format_code_in_doc_comments = true | ||
| #reorder_impl_items = true | ||
| #comment_width = 100 | ||
| #wrap_comments = true | ||
| #normalize_comments = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "arch": "arm", | ||
| "crt-static-respected": true, | ||
| "data-layout": "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64", | ||
| "dynamic-linking": true, | ||
| "env": "gnu", | ||
| "executables": true, | ||
| "features": "+strict-align,+v6", | ||
| "function-sections": false, | ||
| "has-elf-tls": true, | ||
| "has-rpath": true, | ||
| "linker-is-gnu": true, | ||
| "llvm-target": "arm-unknown-linux-gnueabi", | ||
| "max-atomic-width": 64, | ||
| "os": "linux", | ||
| "position-independent-executables": true, | ||
| "pre-link-args": { | ||
| "gcc": [ | ||
| "-Wl,--as-needed", | ||
| "-Wl,-z,noexecstack" | ||
| ] | ||
| }, | ||
| "relocation-model": "static", | ||
| "target-family": "unix", | ||
| "target-mcount": "\u0001__gnu_mcount_nc", | ||
| "target-pointer-width": "32" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "arch": "aarch64", | ||
| "data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", | ||
| "disable-redzone": true, | ||
| "emit-debug-gdb-scripts": false, | ||
| "env": "gnu", | ||
| "features": "+strict-align,+neon,+fp-armv8", | ||
| "frame-pointer": "always", | ||
| "function-sections": false, | ||
| "linker-flavor": "gcc", | ||
| "linker-is-gnu": true, | ||
| "llvm-target": "aarch64-unknown-none", | ||
| "max-atomic-width": 128, | ||
| "needs-plt": true, | ||
| "os": "none", | ||
| "panic-strategy": "abort", | ||
| "position-independent-executables": true, | ||
| "pre-link-args": { | ||
| "gcc": [ | ||
| "-Wl,--as-needed", | ||
| "-Wl,-z,noexecstack", | ||
| "-m64" | ||
| ] | ||
| }, | ||
| "relocation-model": "static", | ||
| "relro-level": "full", | ||
| "stack-probes": { | ||
| "kind": "none" | ||
| }, | ||
| "target-c-int-width": "32", | ||
| "target-endian": "little", | ||
| "target-pointer-width": "64", | ||
| "vendor": "" | ||
| } |
Oops, something went wrong.