Update testbench makefile to generate memfile even in elf file does not end in .elf

This commit is contained in:
Jordan Carlin 2024-12-01 17:56:16 -08:00
parent cda490c911
commit 1932d8bc5d
No known key found for this signature in database

View File

@ -2,11 +2,11 @@
# David_Harris@hmc.edu 3 July 2024 # David_Harris@hmc.edu 3 July 2024
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 # SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
%.elf.memfile: %.elf %.memfile: %
riscv64-unknown-elf-elf2hex --bit-width $(if $(findstring rv32,$*),32,64) --input $< --output $@ riscv64-unknown-elf-elf2hex --bit-width $(if $(findstring rv32,$*),32,64) --input $< --output $@
%.elf.objdump.addr: %.elf.objdump %.objdump.addr: %.objdump
extractFunctionRadix.sh $< extractFunctionRadix.sh $<
%.elf.objdump: %.elf %.objdump: %
riscv64-unknown-elf-objdump -S -D $< > $@ riscv64-unknown-elf-objdump -S -D $< > $@