Commit 8a07bc8b authored by yixiak's avatar yixiak
Browse files

调整

parent 6b0d0ea5
No related merge requests found
Showing with 2 additions and 6 deletions
+2 -6
...@@ -35,15 +35,11 @@ DISASM ?= -x ...@@ -35,15 +35,11 @@ DISASM ?= -x
# Run usertests or usershell # Run usertests or usershell
TEST ?= TEST ?=
build: $(KERNEL_BIN) oscmp build: $(KERNEL_BIN) env
oscmp:
rustup target add riscv64imac-unknown-none-elf
rustup default nightly-2023-03-29 rustup component add llvm-tools-preview rustup target add riscv64imac-unknown-none-elf cargo install cargo-binutils rustup target add riscv64imac-unknown-none-elf --toolchain nightly-2023-03-29 rustup component add llvm-tools-preview --toolchain nightly-2023-03-29
env: env:
(rustup target list | grep "riscv64imac-unknown-none-elf (installed)") || rustup target add $(TARGET) (rustup target list | grep "riscv64imac-unknown-none-elf (installed)") || rustup target add $(TARGET)
cargo install cargo-binutils
rustup component add rust-src rustup component add rust-src
rustup component add llvm-tools-preview rustup component add llvm-tools-preview
...@@ -110,4 +106,4 @@ fat-img: ...@@ -110,4 +106,4 @@ fat-img:
gdb: gdb:
@riscv64-unknown-elf-gdb -x .gdbinit @riscv64-unknown-elf-gdb -x .gdbinit
.PHONY: build env kernel clean disasm disasm-vim run-inner fs-img gdbserver gdbclient fat-img .PHONY: build env kernel clean disasm disasm-vim run-inner fs-img gdbserver gdbclient fat-img
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment