forked from len0rd/rockbox
Add ingenic_tools/usbboot utility
This is essentially an expanded version of jz4760_tools/usbboot, able to support both X1000 and JZ4760 CPUs and easily extended to handle other Ingenic CPUs using the same boot protocol. Change-Id: I70ce3acc3531d65390c6bbae4d2b3352140acf0a
This commit is contained in:
parent
a3d41098c7
commit
13c7f482ce
3 changed files with 437 additions and 0 deletions
14
utils/ingenic_tools/Makefile
Normal file
14
utils/ingenic_tools/Makefile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
DEFINES=
|
||||
CC?=gcc
|
||||
CFLAGS=-g -std=c99 -Wall $(DEFINES) `pkg-config --cflags libusb-1.0`
|
||||
LDFLAGS=`pkg-config --libs libusb-1.0`
|
||||
SRC=$(wildcard *.c)
|
||||
EXEC=$(SRC:.c=)
|
||||
|
||||
all: $(EXEC)
|
||||
|
||||
%: %.c
|
||||
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -fr $(EXEC)
|
||||
Loading…
Add table
Add a link
Reference in a new issue