Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit c9ead8c

Browse files
committed
xtask now uses Makefile.toml to run in vmware
- Tested/built all as debug and release - Tested/Ran xtask as debug and release
1 parent 01174af commit c9ead8c

File tree

6 files changed

+1618
-21
lines changed

6 files changed

+1618
-21
lines changed

.cargo/config.toml

-5
This file was deleted.

Makefile.toml

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@ args = ["fmt"]
1010
[tasks.build-debug]
1111
dependencies = ["format"]
1212
command = "cargo"
13-
args = ["build"]
13+
args = ["build", "--profile", "dev"]
1414

1515
[tasks.build-release]
1616
dependencies = ["format"]
1717
command = "cargo"
18-
args = ["build", "--release"]
18+
args = ["build", "--profile", "release"]
19+
20+
[tasks.run-debug]
21+
command = "cargo"
22+
args = ["run", "--profile", "dev", "--package", "xtask"]
23+
24+
[tasks.run-release]
25+
command = "cargo"
26+
args = ["run", "--profile", "release", "--package", "xtask"]
1927

2028
[tasks.default]
2129
dependencies = ["build-debug", "build-release"]

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,14 @@ A lightweight, memory-safe, and blazingly fast Rust-based type-1 research hyperv
6464
- Debug: `cargo make build-debug`.
6565
- Release: `cargo make build-release`.
6666

67+
## Running the Project
68+
69+
- Debug: `cargo make run-debug`.
70+
- Release: `cargo make run-release`.
71+
6772
## Debugging
6873

69-
- **Serial Port Logging**: Use a serial port logger to capture logs from the hypervisor.
74+
- Serial Port Logging: Use a serial port logger to capture logs from the hypervisor.
7075

7176
#### Enabling Debug Modes
7277

loader/src/images.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use {
1919
},
2020
};
2121

22-
const WINDOWS_BOOT_MANAGER_PATH: &CStr16 = cstr16!("\\EFI\\Microsoft\\Boot\\bootmgfw.efi");
23-
const HYPERVISOR_PATH: &CStr16 = cstr16!("illusion.efi");
22+
const WINDOWS_BOOT_MANAGER_PATH: &CStr16 = cstr16!(r"\EFI\Microsoft\Boot\bootmgfw.efi");
23+
const HYPERVISOR_PATH: &CStr16 = cstr16!(r"\EFI\Boot\illusion.efi");
2424

2525
/// Finds the device path for a given file path.
2626
///

0 commit comments

Comments
 (0)