commit 056ad79b802f72d89b7d0f56d99fb7e9c4bc3fd1 from: Aleksey Ryndin date: Tue Mar 19 06:03:20 2024 UTC Add: make disassemble commit - 6ed628b42830938a7919dd60f8af14519ce778f2 commit + 056ad79b802f72d89b7d0f56d99fb7e9c4bc3fd1 blob - db0fc1adcb394ccbb24031a5f646426c61ad8d89 blob + 6317e275e2ec15439fd42868409b5fcbac33a570 --- Makefile +++ Makefile @@ -2,6 +2,7 @@ AS = clang CXX = clang++ LD = ld.lld OBJCOPY = llvm-objcopy +OBJDUMP = llvm-objdump ARCH = aarch64 TARGET = ${ARCH}-none-elf @@ -22,7 +23,7 @@ CXXFILES += kernel.cc uart_${BOARD}.cc OBJS = ${ASFILES:.S=.o} ${CXXFILES:.cc=.o} -.PHONY: all clean qemu gdb-remote tools +.PHONY: all clean disassemble tools all: squat-${BOARD}.img tools @@ -39,5 +40,8 @@ clean: rm -rf *.o squat-*.elf squat-*.img ${MAKE} -C tools/img_eGON.BT0 clean +disassemble: squat-${BOARD}.elf + ${OBJDUMP} -d squat-${BOARD}.elf + tools: ${MAKE} -C tools/img_eGON.BT0 img_eGON.BT0