forked from len0rd/rockbox
Add new tool to upload code on e200/c200/view in manufacturer mode
This is actually the trivial part of e200tool from MrH: it simply writes the code on the bulk endpoint. Code was mostly copied from imxtools/sbloader. Change-Id: I6c208840d23553aaf3bd8b9374e6b0337e54f3b0
This commit is contained in:
parent
68370b6eea
commit
399acc0387
2 changed files with 331 additions and 0 deletions
21
utils/e200tool/Makefile
Normal file
21
utils/e200tool/Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
DEFINES=
|
||||
CC=gcc
|
||||
LD=gcc
|
||||
CFLAGS=-O2 -g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
|
||||
LDFLAGS=`pkg-config --libs libusb-1.0`
|
||||
BINS=e200load
|
||||
|
||||
all: $(BINS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
e200load: e200load.o
|
||||
$(LD) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -fr *.o
|
||||
|
||||
veryclean:
|
||||
rm -rf $(BINS)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue