Skip to content

Commit

Permalink
feature: Upgrade Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed Sep 14, 2024
1 parent f1c42aa commit 47b61ab
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ output.log
qemu.log
*.iso
!example/iso/grub/*
example/iso/*
example/iso/*
example/qemu-*.log
mount.img
example/virt.out
12 changes: 9 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"rust-analyzer.check.allTargets": false,
"rust-analyzer.check.extraArgs": [],
"rust-analyzer.procMacro.enable": true
}
"rust-analyzer.check.targets": [
"riscv64gc-unknown-none-elf",
"aarch64-unknown-none-softfloat",
"x86_64-unknown-none",
"loongarch64-unknown-none",
],
"rust-analyzer.check.features": "all",
"rust-analyzer.check.extraArgs": [],
}
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tock-registers = "0.8"
arm_gicv2 = "0.1.0"

[target.'cfg(target_arch = "loongarch64")'.dependencies]
loongArch64 = "0.2.2"
loongArch64 = "0.2.4"

[dev-dependencies]
buddy_system_allocator = "0.9.1"
Expand Down
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Makefile to test the polyhal with multiple architectures

all:

test-build:
cargo build --release --all-features --target riscv64gc-unknown-none-elf
cargo build --release --all-features --target aarch64-unknown-none-softfloat
cargo build --release --all-features --target x86_64-unknown-none
cargo build --release --all-features --target loongarch64-unknown-none

test-clippy:
cargo clippy --all-features --target riscv64gc-unknown-none-elf
cargo clippy --all-features --target aarch64-unknown-none-softfloat
cargo clippy --all-features --target x86_64-unknown-none
cargo clippy --all-features --target loongarch64-unknown-none


.PHONY: test
4 changes: 2 additions & 2 deletions example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/linker/linker-loongarch64.ld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OUTPUT_ARCH(riscv)
ENTRY(_start)

BASE_ADDRESS = 0x9000000080000000;
BASE_ADDRESS = 0x9000000090000000;

SECTIONS
{
Expand Down
7 changes: 7 additions & 0 deletions polyhal.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
],
"settings": {
"rust-analyzer.check.allTargets": false,
"rust-analyzer.check.targets": [
"riscv64gc-unknown-none-elf",
"aarch64-unknown-none-softfloat",
"x86_64-unknown-none",
"loongarch64-unknown-none",
],
"rust-analyzer.check.features": "all",
"rust-analyzer.check.extraArgs": [],
}
}

0 comments on commit 47b61ab

Please sign in to comment.