chore: Makefile: add asm dump

This commit is contained in:
Paul Pan 2024-05-07 20:39:52 +08:00
parent 248a985bab
commit 55147ad9ff
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/.idea
/target
/replay.*
/kernel.asm

View File

@ -35,6 +35,9 @@ test:
kernel-test-dump:
@env RUSTFLAGS="$(RUSTFLAGS)" cargo test $(CARGO_TARGET_ARGS) --bin=kernel --no-run --message-format=json
kernel-asm: kernel
riscv64-elf-objdump -d target/$(BUILD_TARGET)/debug/kernel | c++filt -t > kernel.asm
build-target:
@echo $(BUILD_TARGET)
@ -70,4 +73,4 @@ qemu-replay: kernel replay.qcow2
-drive file=replay.qcow2,if=none,id=rr \
-s -S
.PHONY: kernel clippy test kernel-test-dump build-target clean qemu qemu-gdb qemu-record qemu-replay
.PHONY: kernel clippy test kernel-test-dump kernel-asm build-target clean qemu qemu-gdb qemu-record qemu-replay