2024-07-03 23:52:16 +00:00
|
|
|
# Makefile for testbench to create .memfile, .objdump.addr, and .objdump.lab from an ELF
|
|
|
|
# David_Harris@hmc.edu 3 July 2024
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
|
|
|
|
2024-12-02 01:56:16 +00:00
|
|
|
%.memfile: %
|
2024-07-04 14:36:56 +00:00
|
|
|
riscv64-unknown-elf-elf2hex --bit-width $(if $(findstring rv32,$*),32,64) --input $< --output $@
|
2024-07-03 23:52:16 +00:00
|
|
|
|
2024-12-02 01:56:16 +00:00
|
|
|
%.objdump.addr: %.objdump
|
2024-07-03 23:52:16 +00:00
|
|
|
extractFunctionRadix.sh $<
|
|
|
|
|
2024-12-02 01:56:16 +00:00
|
|
|
%.objdump: %
|
|
|
|
riscv64-unknown-elf-objdump -S -D $< > $@
|