Automatically copy rom image and warn about rebuild
This commit is contained in:
@@ -21,7 +21,16 @@ all: $(HEX)
|
|||||||
|
|
||||||
$(HEX): $(BIN)
|
$(HEX): $(BIN)
|
||||||
objcopy --input-target=binary --output-target=verilog $(BIN) $(HEX)
|
objcopy --input-target=binary --output-target=verilog $(BIN) $(HEX)
|
||||||
cmp $(HEX) $(FPGA_IMG)
|
cmp $(HEX) $(FPGA_IMG); \
|
||||||
|
RETVAL=$$?; \
|
||||||
|
if [ $$RETVAL -eq 0 ]; then \
|
||||||
|
echo "SAME"; \
|
||||||
|
else \
|
||||||
|
echo "NOT SAME"; \
|
||||||
|
cp bios.hex ../../hw/efinix_fpga/init_hex.mem; \
|
||||||
|
echo "Update ROM or rebuild FPGA image!"; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
|
|||||||
Reference in New Issue
Block a user