aboutsummaryrefslogtreecommitdiffstats
path: root/rust/macros/lib.rs
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2025-02-08 13:31:14 +0000
committerMiguel Ojeda <[email protected]>2025-03-19 22:18:34 +0000
commit6b2dab17d6fad9d94faae45b46bef307d8560cdf (patch)
treef79d675afb1fba131432eff23f43f016af4facb9 /rust/macros/lib.rs
parentMAINTAINERS: add entry for the `pin-init` crate (diff)
downloadkernel-6b2dab17d6fad9d94faae45b46bef307d8560cdf.tar.gz
kernel-6b2dab17d6fad9d94faae45b46bef307d8560cdf.zip
rust: pass correct target to bindgen on Usermode Linux
Usermode Linux uses "um" as primary architecture name and the underlying physical architecture is provided in "SUBARCH". Resolve the target architecture flags through that underlying architecture. This is the same pattern as used by scripts/Makefile.clang from which the bindgen flags are derived. [ David says: (...) this is enough to get Rust-for-Linux working with gcc under 64-bit UML on my system. - Miguel ] Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: David Gow <[email protected]> Acked-by: Johannes Berg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/lib.rs')
0 files changed, 0 insertions, 0 deletions