From ddc061f0fb3c08e172818891aad9247fd0fb2da9 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 22 Apr 2016 15:11:26 -0700 Subject: Check in compiled debug ROM. Not everybody will have a cross-compiled toolchain set up when they build spike. --- debug_rom/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'debug_rom/Makefile') diff --git a/debug_rom/Makefile b/debug_rom/Makefile index a6da5a8..17cc95e 100644 --- a/debug_rom/Makefile +++ b/debug_rom/Makefile @@ -7,11 +7,14 @@ OBJCOPY = $(RISCV)/bin/riscv64-unknown-elf-objcopy %.o: %.S $(CC) -c $< -debug_rom: debug_rom.o - $(CC) -nostdlib -nostartfiles -Tlink.ld -o $@ $^ +debug_rom.c: debug_rom.raw + xxd -i $^ > $@ debug_rom.raw: debug_rom $(OBJCOPY) -O binary --only-section .text debug_rom debug_rom.raw +debug_rom: debug_rom.o + $(CC) -nostdlib -nostartfiles -Tlink.ld -o $@ $^ + clean: - rm -f debug_rom debug_rom.o debug_rom.raw + rm -f debug_rom debug_rom.o debug_rom.raw debug_rom.c -- cgit v1.1