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