enable flashing from linux

This commit is contained in:
adam@algroup.co.uk 2009-06-28 22:13:04 +00:00
commit 0673512814
3 changed files with 6 additions and 2 deletions

View file

@ -13,7 +13,7 @@ else
QTGUI = guidummy.o
endif
all: proxmark3 snooper cli
all: proxmark3 snooper cli flasher
proxmark3: LDFLAGS+=$(QTLDFLAGS)
proxmark3: proxmark3.o gui.o command.o usb.o $(QTGUI)
@ -22,10 +22,12 @@ snooper: snooper.o gui.o command.o usb.o guidummy.o
cli: cli.o gui.o command.o usb.o guidummy.o
flasher: flasher.o usb.o
proxguiqt.moc.cpp: proxguiqt.h
$(MOC) -o$@ $^
clean:
rm -f cli proxmark3 snooper *.o *.moc.cpp
rm -f cli flasher proxmark3 snooper *.o *.moc.cpp
.PHONY: all clean

View file

@ -149,6 +149,7 @@ int main(int argc, char **argv) {
sleep(1);
fprintf(stderr,"Waiting for Proxmark to reappear on USB...\n");
fprintf(stderr,"(Press and hold down button NOW if your bootloader requires it)\n");
while(!(devh=OpenProxmark(0))) { sleep(1); }
fprintf(stderr,"Found...\n");