mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 13:04:28 +00:00
20 lines
556 B
Makefile
20 lines
556 B
Makefile
TARGET = trap
|
|
|
|
$(TARGET).objdump: $(TARGET)
|
|
riscv64-unknown-elf-objdump -D $(TARGET) > $(TARGET).objdump
|
|
|
|
$(TARGET): $(TARGET).S Makefile
|
|
riscv64-unknown-elf-gcc -g -o $(TARGET) -march=rv64gc -mabi=lp64 -mcmodel=medany \
|
|
-nostartfiles -T../../link/link.ld $(TARGET).S
|
|
|
|
sim:
|
|
spike +signature=$(TARGET).signature.output +signature-granularity=8 $(TARGET)
|
|
diff --ignore-case $(TARGET).signature.output $(TARGET).reference_output || exit
|
|
echo "Signature matches! Success!"
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(TARGET).objdump $(TARGET).signature.output
|
|
|
|
|
|
|