mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 02:05:21 +00:00
Merge pull request #500 from ross144/main
Fixed linux makefile to build label and addr files from object dumps.
This commit is contained in:
commit
7db15c185e
@ -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]+$$") ;\
|
||||||
|
@ -11,7 +11,7 @@ help() {
|
|||||||
|
|
||||||
# defaults
|
# defaults
|
||||||
imageDir=$RISCV/buildroot/output/images
|
imageDir=$RISCV/buildroot/output/images
|
||||||
DEVICE_TREE=../devicetree/wally-virt.dtb
|
DEVICE_TREE=${imageDir}/wally-virt.dtb
|
||||||
|
|
||||||
# Process options and arguments. The following code grabs the single
|
# Process options and arguments. The following code grabs the single
|
||||||
# sdcard device argument no matter where it is in the positional
|
# sdcard device argument no matter where it is in the positional
|
||||||
@ -36,8 +36,6 @@ done
|
|||||||
# File location variables
|
# File location variables
|
||||||
imageDir=$BUILDROOT/output/images
|
imageDir=$BUILDROOT/output/images
|
||||||
|
|
||||||
#imageDir=$RISCV/buildroot/output/images
|
|
||||||
imageDir=~/repos/buildroot-sept2023/output/images
|
|
||||||
tvDir=$RISCV/linux-testvectors
|
tvDir=$RISCV/linux-testvectors
|
||||||
tcpPort=1239
|
tcpPort=1239
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ rawBootmemFile="$tvDir/bootmemGDB.bin"
|
|||||||
bootmemFile="$tvDir/bootmem.bin"
|
bootmemFile="$tvDir/bootmem.bin"
|
||||||
rawUntrimmedBootmemFile="$tvDir/untrimmedBootmemFileGDB.bin"
|
rawUntrimmedBootmemFile="$tvDir/untrimmedBootmemFileGDB.bin"
|
||||||
untrimmedBootmemFile="$tvDir/untrimmedBootmemFile.bin"
|
untrimmedBootmemFile="$tvDir/untrimmedBootmemFile.bin"
|
||||||
DEVICE_TREE=../devicetree/wally-virt.dtb
|
DEVICE_TREE=${imageDir}/wally-virt.dtb
|
||||||
|
|
||||||
read -p "Warning: running this script will overwrite the contents of:
|
read -p "Warning: running this script will overwrite the contents of:
|
||||||
* $rawRamFile
|
* $rawRamFile
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
imageDir=$RISCV/buildroot/output/images
|
imageDir=$RISCV/buildroot/output/images
|
||||||
tvDir=$RISCV/linux-testvectors
|
tvDir=$RISCV/linux-testvectors
|
||||||
recordFile="$tvDir/all.qemu"
|
recordFile="$tvDir/all.qemu"
|
||||||
DEVICE_TREE=../devicetree/wally-virt.dtb
|
DEVICE_TREE=${imageDir}/wally-virt.dtb
|
||||||
|
|
||||||
read -p "Warning: running this script will overwrite $recordFile
|
read -p "Warning: running this script will overwrite $recordFile
|
||||||
Would you like to proceed? (y/n) " -n 1 -r
|
Would you like to proceed? (y/n) " -n 1 -r
|
||||||
|
@ -6,7 +6,7 @@ recordFile="$tvDir/all.qemu"
|
|||||||
traceFile="$tvDir/all.txt"
|
traceFile="$tvDir/all.txt"
|
||||||
trapsFile="$tvDir/traps.txt"
|
trapsFile="$tvDir/traps.txt"
|
||||||
interruptsFile="$tvDir/interrupts.txt"
|
interruptsFile="$tvDir/interrupts.txt"
|
||||||
DEVICE_TREE=../devicetree/wally-virt.dtb
|
DEVICE_TREE=${imageDir}/wally-virt.dtb
|
||||||
|
|
||||||
read -p "Warning: running this script will overwrite the contents of:
|
read -p "Warning: running this script will overwrite the contents of:
|
||||||
* $traceFile
|
* $traceFile
|
||||||
|
Loading…
Reference in New Issue
Block a user