Skip to content

Commit a8702b2

Browse files
committed
chore: cleanup code for plat support; removing 2k1000la stuffs
1 parent eff7c0b commit a8702b2

File tree

8 files changed

+22
-94
lines changed

8 files changed

+22
-94
lines changed

Cargo.lock

Lines changed: 2 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ qemu = [
108108
]
109109

110110
vf2 = ["dep:axplat-riscv64-visionfive2", "axfeat/driver-sdmmc-gpt"]
111-
2k1000la = ["dep:axplat-loongarch64-2k1000la", "axfeat/driver-ahci-gpt"]
112111

113112
# Stubs
114113
pci = ["axfeat/bus-pci"]
@@ -135,13 +134,7 @@ starry-api.workspace = true
135134

136135
[dependencies.axplat-riscv64-visionfive2]
137136
git = "https://github.com/Starry-OS/axplat-riscv64-visionfive2.git"
138-
rev = "a4f99aa"
139-
features = ["fp-simd", "irq", "rtc"]
140-
optional = true
141-
142-
[dependencies.axplat-loongarch64-2k1000la]
143-
git = "https://github.com/Starry-OS/axplat-loongarch64-2k1000la.git"
144-
rev = "b9b10d7"
137+
rev = "5056c1d"
145138
features = ["fp-simd", "irq", "rtc"]
146139
optional = true
147140

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,4 @@ la:
4848
vf2:
4949
$(MAKE) ARCH=riscv64 APP_FEATURES=vf2 MYPLAT=axplat-riscv64-visionfive2 BUS=dummy build
5050

51-
2k1000la:
52-
$(MAKE) ARCH=loongarch64 APP_FEATURES=2k1000la MYPLAT=axplat-loongarch64-2k1000la BUS=dummy build
53-
5451
.PHONY: build run justrun debug disasm clean

scripts/flash.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
if [ "$(id -u)" -ne 0 ]; then
2+
echo "This script must be run as root"
3+
exit 1
4+
fi
5+
6+
DEV=$1
7+
FILE=$2
8+
9+
if [ -z "$DEV" ] || [ -z "$FILE" ]; then
10+
echo "Usage: $0 <device> <file>"
11+
exit 1
12+
fi
13+
14+
set -e
15+
16+
mount -v $DEV mnt
17+
cp -v ${FILE} mnt/kernel
18+
umount -v mnt

scripts/update-2k1000la.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

scripts/update-vf2.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,3 @@ fn main() {
4141

4242
#[cfg(feature = "vf2")]
4343
extern crate axplat_riscv64_visionfive2;
44-
45-
#[cfg(feature = "2k1000la")]
46-
extern crate axplat_loongarch64_2k1000la;

0 commit comments

Comments
 (0)