Rollback rustsbi && debugging in release mode

This commit is contained in:
Yifan Wu 2022-04-16 15:39:10 -07:00
parent 9cfba2a415
commit c8d138a7e3
5 changed files with 9 additions and 3 deletions

View file

@ -15,4 +15,7 @@ xmas-elf = "0.7.0"
[features]
board_qemu = []
board_k210 = []
board_k210 = []
[profile.release]
debug = true

View file

@ -1,6 +1,6 @@
# Building
TARGET := riscv64gc-unknown-none-elf
MODE := debug
MODE := release
KERNEL_ELF := target/$(TARGET)/$(MODE)/os
KERNEL_BIN := $(KERNEL_ELF).bin
DISASM_TMP := target/$(TARGET)/$(MODE)/asm
@ -103,4 +103,4 @@ gdbserver: build
gdbclient:
@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