aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2021-07-03 15:18:23 +0000
committerMiguel Ojeda <[email protected]>2022-09-28 06:59:52 +0000
commit8fcbf024920b96cd8c59f85d57d97af7237237b4 (patch)
tree1a255540720736d6857e21304bbf5cc59870e04f /scripts/generate_rust_target.rs
parentrust: add `kernel` crate (diff)
downloadkernel-8fcbf024920b96cd8c59f85d57d97af7237237b4.tar.gz
kernel-8fcbf024920b96cd8c59f85d57d97af7237237b4.zip
rust: export generated symbols
All symbols are reexported reusing the `EXPORT_SYMBOL_GPL` macro from C. The lists of symbols are generated on the fly. There are three main sets of symbols to distinguish: - The ones from the `core` and `alloc` crates (from the Rust standard library). The code is licensed as Apache/MIT. - The ones from our abstractions in the `kernel` crate. - The helpers (already exported since they are not generated). We export everything as GPL. This ensures we do not mistakenly expose GPL kernel symbols/features as non-GPL, even indirectly. Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Co-developed-by: Alex Gaynor <[email protected]> Signed-off-by: Alex Gaynor <[email protected]> Co-developed-by: Wedson Almeida Filho <[email protected]> Signed-off-by: Wedson Almeida Filho <[email protected]> Co-developed-by: Björn Roy Baron <[email protected]> Signed-off-by: Björn Roy Baron <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions