From 8b48a921318a9367278777d4918784dbd9440e45 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Tue, 21 Nov 2023 22:00:53 -0600 Subject: [PATCH] Fixed linux makefile to build label and addr files from object dumps. --- linux/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/Makefile b/linux/Makefile index 8d9be577b..520c7cd44 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -39,7 +39,7 @@ Image: # source ../setup.sh; $(MAKE) disassemble install: - sudo mv -r $(BUILDROOT) $(RISCV)/$(BUILDROOT) + sudo mv $(BUILDROOT) $(RISCV)/$(BUILDROOT) # Temp rule for debugging test: @@ -65,12 +65,15 @@ disassemble: find $(BUILDROOT)/output/build/linux-* -maxdepth 1 -name "vmlinux" | xargs cp -t $(BUILDROOT)/output/images/ mkdir -p $(DIS) make -j $(OBJDUMPS) + make -j $(OBJDUMPS).addr $(DIS)/%.objdump: $(IMAGES)/%.elf riscv64-unknown-elf-objdump -DS $< >> $@ + extractFunctionRadix.sh $@ $(DIS)/%.objdump: $(IMAGES)/% riscv64-unknown-elf-objdump -S $< >> $@ + extractFunctionRadix.sh $@ $(IMAGES)/vmlinux: linuxDir=$$(find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$") ;\