Risc-v support

This commit is contained in:
Andrey Turkin
2024-07-16 18:17:57 +03:00
parent afc225c8d6
commit 7ccaccee4e
3 changed files with 352 additions and 293 deletions
Generated
+346 -289
View File
File diff suppressed because it is too large Load Diff
+5 -4
View File
@@ -27,7 +27,7 @@ path = "src/lib.rs"
[dependencies]
anyhow = "1.0.89"
arg_parser = "0.1.0"
cc = "=1.0.99" # Hack for ring 0.13.5 not building
cc = "1"
fatfs = "0.3.0"
fscommon = "0.1.1"
gpt = "3.0.0"
@@ -36,16 +36,17 @@ pkgar = "0.1.13"
pkgar-core = "0.1.13"
pkgar-keys = "0.1.13"
rand = "0.8"
redox_liner = "0.5.1"
redox_pkgutils = "0.1.8"
redox_liner = "0.5"
redox_pkgutils = { git = "https://gitlab.redox-os.org/redox-os/pkgutils.git" }
redox_syscall = "0.5.2"
redoxfs = "0.6.5"
rust-argon2 = "0.8.2"
serde = "=1.0.197"
serde_derive = "1.0.110"
termion = "1.5.5"
termion = "4"
toml = "0.8"
uuid = { version = "1.4", features = ["v4"] }
[patch.crates-io]
ring = { git = "https://gitlab.redox-os.org/redox-os/ring.git", branch = "redox-unix-0.13.5" }
cc-11 = { git = "https://github.com/tea/cc-rs", branch="riscv-abi-arch-fix", package = "cc" }
+1
View File
@@ -545,6 +545,7 @@ where
"aarch64-unknown-redox" => "BOOTAA64.EFI",
"i686-unknown-redox" => "BOOTIA32.EFI",
"x86_64-unknown-redox" => "BOOTX64.EFI",
"riscv64gc-unknown-redox" => "BOOTRISCV64.EFI",
_ => {
bail!("target '{target}' not supported");
}