mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-09-20 12:54:46 -04:00
build: Do not use sudo when running tillitis-iceprog
This commit is contained in:
parent
7b1c1e5076
commit
4172db8dfb
1 changed files with 4 additions and 4 deletions
|
@ -472,17 +472,17 @@ tb_application_fpga: $(SIM_VERILOG_SRCS) \
|
|||
#-------------------------------------------------------------------
|
||||
|
||||
prog_flash: check-hardware application_fpga.bin
|
||||
sudo tillitis-iceprog application_fpga.bin
|
||||
tillitis-iceprog application_fpga.bin
|
||||
.PHONY: prog_flash
|
||||
|
||||
prog_flash_testfw: check-hardware application_fpga_testfw.bin
|
||||
sudo tillitis-iceprog application_fpga_testfw.bin
|
||||
tillitis-iceprog application_fpga_testfw.bin
|
||||
.PHONY: prog_flash_testfw
|
||||
|
||||
check-hardware:
|
||||
@sudo tillitis-iceprog -t >/dev/null 2>&1 || \
|
||||
@tillitis-iceprog -t >/dev/null 2>&1 || \
|
||||
{ echo "Programmer not plugged in or not accessible"; false; }
|
||||
@if sudo tillitis-iceprog -t 2>&1 | grep -qi "^flash.id:\( 0x\(00\|ff\)\)\{4\}"; then \
|
||||
@if tillitis-iceprog -t 2>&1 | grep -qi "^flash.id:\( 0x\(00\|ff\)\)\{4\}"; then \
|
||||
echo "No USB stick in the programmer?"; false; else true; fi
|
||||
.PHONY: check-hardware
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue