mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: Makefile: add asm dump
This commit is contained in:
parent
248a985bab
commit
55147ad9ff
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/.idea
|
||||
/target
|
||||
/replay.*
|
||||
/kernel.asm
|
||||
|
5
Makefile
5
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user