diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-02-27 22:04:03 +0000 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-02-28 02:52:56 +0000 |
commit | 13c7f482ce9614012312e8189b91be0fee65f2d9 (patch) | |
tree | fcf747c5cad7ed658095b551a477c53ebc4e1760 /utils/ingenic_tools/Makefile | |
parent | a3d41098c7078bcb039535bfbbcc3f273cb5df61 (diff) | |
download | rockbox-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/Makefile | 14 |
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 @@ | |||
1 | DEFINES= | ||
2 | CC?=gcc | ||
3 | CFLAGS=-g -std=c99 -Wall $(DEFINES) `pkg-config --cflags libusb-1.0` | ||
4 | LDFLAGS=`pkg-config --libs libusb-1.0` | ||
5 | SRC=$(wildcard *.c) | ||
6 | EXEC=$(SRC:.c=) | ||
7 | |||
8 | all: $(EXEC) | ||
9 | |||
10 | %: %.c | ||
11 | $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) | ||
12 | |||
13 | clean: | ||
14 | rm -fr $(EXEC) | ||