Merges upload and program scripts into makefile
This commit is contained in:
parent
cd02a1c942
commit
be63b56966
8
Makefile
8
Makefile
|
@ -9,7 +9,7 @@ src/encode.v \
|
|||
src/hdmi.xdc \
|
||||
src/simple_dual_ram.v \
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all clean upload program
|
||||
|
||||
all: $(BUILD)/impl.bin
|
||||
|
||||
|
@ -49,5 +49,11 @@ $(BUILD)/ip: | $(BUILD)
|
|||
$(BUILD)/obj: | $(BUILD)
|
||||
mkdir $@
|
||||
|
||||
upload: $(BUILD)/impl.bin
|
||||
sudo openocd -f scripts/openocd.cfg -c "init" -c "pld load 0 .build/impl.bit" -c "shutdown"
|
||||
|
||||
program: $(BUILD)/impl.bin
|
||||
sudo openocd -f scripts/openocd.cfg -c "init" -c "jtagspi_init 0 scripts/bscan_spi_xc7a35t.bit" -c "jtagspi_program .build/impl.bin 0x0" -c "fpga_program" -c "shutdown"
|
||||
|
||||
clean:
|
||||
rm -fr $(BUILD)
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
sudo openocd -f openocd.cfg -c "init" -c "jtagspi_init 0 bscan_spi_xc7a35t.bit" -c "jtagspi_program .build/impl.bin 0x0" -c "fpga_program" -c "shutdown"
|
BIN
scripts/bscan_spi_xc7a35t.bit
Normal file
BIN
scripts/bscan_spi_xc7a35t.bit
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user