Add hopper make target

hopper is useful for inspecting kernel disassembly.
This commit is contained in:
Berkus Decker 2020-10-07 15:04:38 +03:00
parent dd2938fa2f
commit 44037398d4
2 changed files with 13 additions and 0 deletions

View File

@ -17,3 +17,8 @@ clippy:
test:
cargo make test
alias disasm := hopper
hopper:
cargo make hopper

View File

@ -70,3 +70,11 @@ args = ["unmount", "/Volumes/BOOT/"]
[tasks.clippy]
command = "cargo"
args = ["clippy", "${BUILD_STD}", "--target=${TARGET_JSON}", "--", "-D", "warnings"]
[tasks.hopper]
dependencies = ["build", "kernel-binary"]
# The cmd line below causes a bug in hopper, see https://www.dropbox.com/s/zyw5mfx0bepcjb1/hopperv4-RAW-bug.mov?dl=0
#"hopperv4 --loader RAW --base-address 0x80000 --entrypoint 0x80000 --file-offset 0 --plugin arm --cpu aarch64 --variant generic --contains-code true --executable ${KERNEL_BIN}"
script = [
"hopperv4 --loader ELF --executable ${KERNEL_ELF}"
]