summaryrefslogtreecommitdiff
path: root/utils/ingenic_tools/Makefile
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-02-27 22:04:03 +0000
committerSolomon Peachy <pizza@shaftnet.org>2021-02-28 02:52:56 +0000
commit13c7f482ce9614012312e8189b91be0fee65f2d9 (patch)
treefcf747c5cad7ed658095b551a477c53ebc4e1760 /utils/ingenic_tools/Makefile
parenta3d41098c7078bcb039535bfbbcc3f273cb5df61 (diff)
downloadrockbox-13c7f482ce9614012312e8189b91be0fee65f2d9.tar.gz
rockbox-13c7f482ce9614012312e8189b91be0fee65f2d9.zip
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
Diffstat (limited to 'utils/ingenic_tools/Makefile')
-rw-r--r--utils/ingenic_tools/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/ingenic_tools/Makefile b/utils/ingenic_tools/Makefile
new file mode 100644
index 0000000000..78b538ea4b
--- /dev/null
+++ b/utils/ingenic_tools/Makefile
@@ -0,0 +1,14 @@
1DEFINES=
2CC?=gcc
3CFLAGS=-g -std=c99 -Wall $(DEFINES) `pkg-config --cflags libusb-1.0`
4LDFLAGS=`pkg-config --libs libusb-1.0`
5SRC=$(wildcard *.c)
6EXEC=$(SRC:.c=)
7
8all: $(EXEC)
9
10%: %.c
11 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
12
13clean:
14 rm -fr $(EXEC)