Skip to content

Commit

Permalink
rust: arch/um: Add support for CONFIG_RUST under x86_64 UML
Browse files Browse the repository at this point in the history
CONFIG_RUST currently supports x86_64, but does not support it under
UML. Adding support is trivial:
- Add CONFIG_HAVE_RUST to UML if X86_64 is set.
- Have generate_rust_target check for CONFIG_X86_64, which is present
  under UML, rather than CONFIG_X86, which isn't.

Signed-off-by: David Gow <davidgow@google.com>
  • Loading branch information
sulix committed May 10, 2022
1 parent 000ea48 commit 73d4a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/um/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ config UML
select TRACE_IRQFLAGS_SUPPORT
select TTY # Needed for line.c
select HAVE_ARCH_VMAP_STACK
select HAVE_RUST if X86_64

config MMU
bool
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_rust_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ fn main() {
features += ",+c";
}
ts.push("features", features);
} else if cfg.has("X86") {
} else if cfg.has("X86_64") {
ts.push("arch", "x86_64");
ts.push(
"data-layout",
Expand Down

0 comments on commit 73d4a4a

Please sign in to comment.