From 13c7f482ce9614012312e8189b91be0fee65f2d9 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 27 Feb 2021 22:04:03 +0000 Subject: 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 --- utils/ingenic_tools/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 utils/ingenic_tools/Makefile (limited to 'utils/ingenic_tools/Makefile') 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 @@ +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) -- cgit v1.2.3