aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/romload/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/romload/Makefile')
-rw-r--r--scripts/romload/Makefile14
1 files changed, 1 insertions, 13 deletions
diff --git a/scripts/romload/Makefile b/scripts/romload/Makefile
index 8db733f..17f27ec 100644
--- a/scripts/romload/Makefile
+++ b/scripts/romload/Makefile
@@ -14,24 +14,16 @@ test: testbench.vvp firmware32.hex
vvp -l testbench.log -N testbench.vvp
testbench.vvp: testbench.v ../../picorv32.v firmware_dbg.v
- iverilog -D WRITE_VCD=1 -o testbench.vvp testbench.v ../../picorv32.v
+ iverilog -o testbench.vvp testbench.v ../../picorv32.v
chmod -x testbench.vvp
firmware32.hex: firmware.elf hex8tohex32.py
$(RISCV_TOOLS_PREFIX)objcopy -O verilog firmware.elf firmware.tmp
python3 hex8tohex32.py firmware.tmp > firmware32.hex
-#firmware32.hex: firmware.elf start.elf hex8tohex32.py
-# $(RISCV_TOOLS_PREFIX)objcopy -O verilog start.elf start.tmp
-# $(RISCV_TOOLS_PREFIX)objcopy -O verilog firmware.elf firmware.tmp
-# cat start.tmp firmware.tmp > firmware.hex
-# python3 hex8tohex32.py firmware.hex > firmware32.hex
-# rm -f start.tmp firmware.tmp
firmware_dbg.v: firmware.map
python3 map2debug.py
-#firmware.o: firmware.c
-# $(CC) -c $^
start.o: start.S
$(CC) -c -nostdlib start.S $(LDLIBS)
@@ -40,10 +32,6 @@ firmware.elf: firmware.o syscalls.o start.o
$(CC) $(LDFLAGS),-Map=firmware.map -o $@ $^ -T sections.lds $(LDLIBS)
chmod -x firmware.elf
-start.elf: start.S start.ld
- $(CC) -nostdlib -o start.elf start.S -T start.ld $(LDLIBS)
- chmod -x start.elf
-
clean:
rm -f *.o *.d *.tmp start.elf
rm -f firmware.elf firmware.hex firmware32.hex