From 79adfceb4dc722e4df421969eb7ba4540ffaef6d Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Thu, 7 Apr 2022 16:33:51 -0500 Subject: [PATCH] Add an asm dump with source to the coldboot makefile Clean all files, including libgram files, when running make clean --- coldboot/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/coldboot/Makefile b/coldboot/Makefile index 8262c9c..4a90fe6 100644 --- a/coldboot/Makefile +++ b/coldboot/Makefile @@ -40,7 +40,7 @@ CFLAGS = -Os -g -Wall -std=c99 -msoft-float -mno-string \ ASFLAGS = $(CFLAGS) LDFLAGS = -T powerpc.lds -all: coldboot.hex +all: coldboot.hex coldboot.S console.o: ../lib/console.c $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ @@ -67,9 +67,12 @@ coldboot.hex: coldboot.bin ../scripts/bin2hex.py $^ > $@ powerpc64le-linux-gnu-objdump -D coldboot.elf > coldboot.as +coldboot.S: coldboot.elf + objdump -S coldboot.elf > coldboot.S + clean: - @rm -f *.o coldboot.elf coldboot.bin coldboot.hex coldboot.as powerpc.lds + @rm -f ../lib/*.o ../libgram/src/*.o *.o coldboot.elf coldboot.bin coldboot.hex coldboot.as coldboot.S powerpc.lds distclean: clean rm -f *~ -- 2.30.2