diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-04-07 22:25:06 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-04-07 22:25:06 +0200 |
commit | 399acc038750943c1a0ee7178a18714334871472 (patch) | |
tree | 343079cb893fe9b27d66455d0459536764b0865a /utils/e200tool/Makefile | |
parent | 68370b6eea8b5bed54e82a07086ad7c81cc966dd (diff) | |
download | rockbox-399acc038750943c1a0ee7178a18714334871472.tar.gz rockbox-399acc038750943c1a0ee7178a18714334871472.zip |
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
Diffstat (limited to 'utils/e200tool/Makefile')
-rw-r--r-- | utils/e200tool/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/e200tool/Makefile b/utils/e200tool/Makefile new file mode 100644 index 0000000000..63f82b9cdd --- /dev/null +++ b/utils/e200tool/Makefile | |||
@@ -0,0 +1,21 @@ | |||
1 | DEFINES= | ||
2 | CC=gcc | ||
3 | LD=gcc | ||
4 | CFLAGS=-O2 -g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES) | ||
5 | LDFLAGS=`pkg-config --libs libusb-1.0` | ||
6 | BINS=e200load | ||
7 | |||
8 | all: $(BINS) | ||
9 | |||
10 | %.o: %.c | ||
11 | $(CC) $(CFLAGS) -c -o $@ $< | ||
12 | |||
13 | e200load: e200load.o | ||
14 | $(LD) -o $@ $^ $(LDFLAGS) | ||
15 | |||
16 | clean: | ||
17 | rm -fr *.o | ||
18 | |||
19 | veryclean: | ||
20 | rm -rf $(BINS) | ||
21 | |||