Commit 6b2dab17 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Miguel Ojeda
Browse files

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: default avatarThomas Weißschuh <linux@weissschuh.net>
Reviewed-by: default avatarDavid Gow <davidgow@googl.ecom>
Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Link: https://lore.kernel.org/r/20250208-rust-kunit-v1-1-94a026be6d72@weissschuh.net


Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent cf25bc61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment