Skip to content

Commit

Permalink
Merge branch 'new-dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Godones committed Nov 23, 2023
2 parents 314ebad + 8e948ac commit 3c4e4d7
Show file tree
Hide file tree
Showing 84 changed files with 2,953 additions and 4,250 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rust-analyzer.checkOnSave": true,
"rust-analyzer.cargo.features": [
"qemu"
]
}
9 changes: 1 addition & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,20 @@ members = [
"apps/printdemo",
"apps/egui",
"apps/sysinfo",
# "apps/dbfs",
"apps/init",
"apps/ls",
"apps/mkdir",
"apps/pwd",
"apps/shell",
"apps/filetest_simple",
"apps/hugewrite",
"apps/hugeread",
"apps/touch",
"apps/throughput",
"apps/randrw",
"apps/sequencewr",
"apps/run_test",
"apps/guitest",
"apps/slint",
"apps/socket_test",
"apps/tests",
"apps/memory-game",
"apps/print",
"apps/final_test"
"apps/final_test",
]


Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ user:
@cd apps && make all

sdcard:fat32 testelf user
@sudo umount /fat

run:sdcard install compile
@echo qemu booot $(SMP)
Expand Down Expand Up @@ -153,11 +154,10 @@ f_test:
-device virtio-net-device,netdev=net -netdev user,id=net

testelf:
if [ -d "sdcard" ]; then \
@if [ -d "sdcard" ]; then \
sudo cp sdcard/* /fat -r; \
sudo cp sdcard/* /fat/bin -r;\
# sudo cp sdcard/* /fat/bin -r;\
fi
@sync

dtb:
$(call boot_qemu, -machine dumpdtb=riscv.dtb)
Expand All @@ -177,10 +177,7 @@ ZeroFile:
@dd if=/dev/zero of=$(IMG) bs=1M count=64

fat32:
if [ -f "$(IMG)" ]; then \
rm $(IMG); \
touch $(IMG); \
fi
@-touch $(IMG)
@dd if=/dev/zero of=$(IMG) bs=1M count=72
@mkfs.fat -F 32 $(IMG)
@if mountpoint -q /fat; then \
Expand All @@ -190,7 +187,7 @@ fat32:
@sudo cp tools/f1.txt /fat
@sudo mkdir /fat/folder
@sudo cp tools/f1.txt /fat/folder
@sync
@echo fat32 has been created


img-hex:
Expand Down Expand Up @@ -226,4 +223,7 @@ clean:
@rm alien-*


check:
cargo check --target riscv64gc-unknown-none-elf --features $(FEATURES)

.PHONY: all install build run clean fake_run sdcard vf2 unmatched gdb-client gdb-server kernel_asm docs
3 changes: 1 addition & 2 deletions apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ GUI ?=n

all:build
@echo "Moving apps to /fat32/bin"
@$(foreach dir, $(BUILD_CRATES), (sudo cp $(target)$(dir) /fat/bin/$(dir););)
@sync
@$(foreach dir, $(BUILD_CRATES), (sudo cp $(target)$(dir) /fat/$(dir););)


build:
Expand Down
16 changes: 0 additions & 16 deletions apps/dbfs/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions apps/dbfs/Cargo.toml

This file was deleted.

81 changes: 0 additions & 81 deletions apps/dbfs/src/main.rs

This file was deleted.

9 changes: 0 additions & 9 deletions apps/filetest_simple/Cargo.toml

This file was deleted.

41 changes: 0 additions & 41 deletions apps/filetest_simple/src/main.rs

This file was deleted.

9 changes: 0 additions & 9 deletions apps/hugeread/Cargo.toml

This file was deleted.

72 changes: 0 additions & 72 deletions apps/hugeread/src/main.rs

This file was deleted.

9 changes: 0 additions & 9 deletions apps/hugewrite/Cargo.toml

This file was deleted.

Loading

0 comments on commit 3c4e4d7

Please sign in to comment.