mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-09-23 06:14:39 -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
|
prog_flash: check-hardware application_fpga.bin
|
||||||
sudo tillitis-iceprog application_fpga.bin
|
tillitis-iceprog application_fpga.bin
|
||||||
.PHONY: prog_flash
|
.PHONY: prog_flash
|
||||||
|
|
||||||
prog_flash_testfw: check-hardware application_fpga_testfw.bin
|
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
|
.PHONY: prog_flash_testfw
|
||||||
|
|
||||||
check-hardware:
|
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; }
|
{ 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
|
echo "No USB stick in the programmer?"; false; else true; fi
|
||||||
.PHONY: check-hardware
|
.PHONY: check-hardware
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue