mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 21:14:37 +00:00
12 lines
423 B
Makefile
12 lines
423 B
Makefile
# 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
|
|
|
|
%.elf.memfile: %.elf
|
|
riscv64-unknown-elf-elf2hex --bit-width $(if $(findstring rv32,$*),32,64) --input $< --output $@
|
|
|
|
%.elf.objdump.addr: %.elf.objdump
|
|
extractFunctionRadix.sh $<
|
|
|
|
%.elf.objdump: %.elf
|
|
riscv64-unknown-elf-objdump -S -D $< > $@
|