Rollback rustsbi && debugging in release mode
This commit is contained in:
parent
9cfba2a415
commit
c8d138a7e3
5 changed files with 9 additions and 3 deletions
Binary file not shown.
Binary file not shown.
|
@ -16,3 +16,6 @@ xmas-elf = "0.7.0"
|
||||||
[features]
|
[features]
|
||||||
board_qemu = []
|
board_qemu = []
|
||||||
board_k210 = []
|
board_k210 = []
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
debug = true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Building
|
# Building
|
||||||
TARGET := riscv64gc-unknown-none-elf
|
TARGET := riscv64gc-unknown-none-elf
|
||||||
MODE := debug
|
MODE := release
|
||||||
KERNEL_ELF := target/$(TARGET)/$(MODE)/os
|
KERNEL_ELF := target/$(TARGET)/$(MODE)/os
|
||||||
KERNEL_BIN := $(KERNEL_ELF).bin
|
KERNEL_BIN := $(KERNEL_ELF).bin
|
||||||
DISASM_TMP := target/$(TARGET)/$(MODE)/asm
|
DISASM_TMP := target/$(TARGET)/$(MODE)/asm
|
||||||
|
@ -103,4 +103,4 @@ gdbserver: build
|
||||||
gdbclient:
|
gdbclient:
|
||||||
@riscv64-unknown-elf-gdb -ex 'file $(KERNEL_ELF)' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'
|
@riscv64-unknown-elf-gdb -ex 'file $(KERNEL_ELF)' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'
|
||||||
|
|
||||||
.PHONY: build env kernel clean disasm disasm-vim run-inner switch-check gdbserver
|
.PHONY: build env kernel clean disasm disasm-vim run-inner switch-check gdbserver gdbclient
|
||||||
|
|
|
@ -7,3 +7,6 @@ edition = "2018"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
debug = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue