1
0
Fork 0
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:
Aidan MacDonald 2021-02-27 22:04:03 +00:00 committed by Solomon Peachy
parent a3d41098c7
commit 13c7f482ce
3 changed files with 437 additions and 0 deletions

View 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)