mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed linux makefile to build label and addr files from object dumps.
This commit is contained in:
parent
a042eb5e32
commit
8b48a92131
@ -39,7 +39,7 @@ Image:
|
|||||||
# source ../setup.sh; $(MAKE) disassemble
|
# source ../setup.sh; $(MAKE) disassemble
|
||||||
|
|
||||||
install:
|
install:
|
||||||
sudo mv -r $(BUILDROOT) $(RISCV)/$(BUILDROOT)
|
sudo mv $(BUILDROOT) $(RISCV)/$(BUILDROOT)
|
||||||
|
|
||||||
# Temp rule for debugging
|
# Temp rule for debugging
|
||||||
test:
|
test:
|
||||||
@ -65,12 +65,15 @@ disassemble:
|
|||||||
find $(BUILDROOT)/output/build/linux-* -maxdepth 1 -name "vmlinux" | xargs cp -t $(BUILDROOT)/output/images/
|
find $(BUILDROOT)/output/build/linux-* -maxdepth 1 -name "vmlinux" | xargs cp -t $(BUILDROOT)/output/images/
|
||||||
mkdir -p $(DIS)
|
mkdir -p $(DIS)
|
||||||
make -j $(OBJDUMPS)
|
make -j $(OBJDUMPS)
|
||||||
|
make -j $(OBJDUMPS).addr
|
||||||
|
|
||||||
$(DIS)/%.objdump: $(IMAGES)/%.elf
|
$(DIS)/%.objdump: $(IMAGES)/%.elf
|
||||||
riscv64-unknown-elf-objdump -DS $< >> $@
|
riscv64-unknown-elf-objdump -DS $< >> $@
|
||||||
|
extractFunctionRadix.sh $@
|
||||||
|
|
||||||
$(DIS)/%.objdump: $(IMAGES)/%
|
$(DIS)/%.objdump: $(IMAGES)/%
|
||||||
riscv64-unknown-elf-objdump -S $< >> $@
|
riscv64-unknown-elf-objdump -S $< >> $@
|
||||||
|
extractFunctionRadix.sh $@
|
||||||
|
|
||||||
$(IMAGES)/vmlinux:
|
$(IMAGES)/vmlinux:
|
||||||
linuxDir=$$(find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$") ;\
|
linuxDir=$$(find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$") ;\
|
||||||
|
Loading…
Reference in New Issue
Block a user