-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving from rustup/nightlies to standard rust #28
Comments
A quick build shows that the use of diff --git a/Makefile b/Makefile
index 5f4a012..af0bbf8 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,7 @@ svsm.bin.elf: $(OBJS) src/start/svsm.lds
$(GCC) $(LD_FLAGS) -o $@ $(OBJS)
%.a: src/*.rs src/cpu/*.rs src/mem/*.rs src/util/*.rs
- @xargo build --features $(FEATURES)
+ cargo build --features $(FEATURES)
%.o: %.S src/start/svsm.h
$(GCC) $(C_FLAGS) $(LDS_FLAGS) $(A_FLAGS) -c -o $@ $<
@@ -64,12 +64,11 @@ prereq: .prereq
rustup component add rust-src
rustup component add llvm-tools-preview
rustup override set nightly
- cargo install xargo
cargo install bootimage
touch .prereq
clean:
- @xargo clean
+ cargo clean
rm -f svsm.bin svsm.bin.elf $(OBJS)
rm -rf $(TARGET_DIR)
rm -f src/start/svsm.lds I haven't yet tried booting with it, but it compiled nicely. |
This doesn't quite work for me; I get error: language item required, but not found: To fix this, I have to specify a --target x86_64-unknown-none to cargo:
|
hmmm, cargo should have read its settings from |
Oh, right, that would be my fault then, I removed .cargo trying to clean my downloaded build environment. Doing a git reset put it back and now the patch works as expected. Sorry about the noise. |
Blocked by
|
I'm completely in favor of switching to standard Rust. Besides the reasons already mentioned, we are missing out on crates that don't offer an |
|
The SVSM cannot be packaged by any distribution until it can be built by a standard and released version of rust. How far away from this are we? The main reason I thought we needed nightlies was asm() which went into 1.59, and has been picked up by the distributions. Can we now try moving away from rust nightlies and see if it can be made to work?
The text was updated successfully, but these errors were encountered: