diff --git a/bootloader/rustsbi-k210.bin b/bootloader/rustsbi-k210.bin index 158bfa4c..c53ed1fc 100755 Binary files a/bootloader/rustsbi-k210.bin and b/bootloader/rustsbi-k210.bin differ diff --git a/bootloader/rustsbi-qemu.bin b/bootloader/rustsbi-qemu.bin index 76e0e59e..ddbf336a 100755 Binary files a/bootloader/rustsbi-qemu.bin and b/bootloader/rustsbi-qemu.bin differ diff --git a/os/Cargo.toml b/os/Cargo.toml index c98e71ef..cc93ff4e 100644 --- a/os/Cargo.toml +++ b/os/Cargo.toml @@ -14,3 +14,6 @@ cfg-if = { version = "1.0.0" } [features] board_qemu = [] board_k210 = [] + +[profile.release] +debug = true diff --git a/os/Makefile b/os/Makefile index f3e40c1a..6da9228f 100644 --- a/os/Makefile +++ b/os/Makefile @@ -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 diff --git a/user/Cargo.toml b/user/Cargo.toml index 817ca525..d843673c 100644 --- a/user/Cargo.toml +++ b/user/Cargo.toml @@ -7,3 +7,6 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] + +[profile.release] +debug = true