From 6ea48cf92b2961fe3f9ffe76445bc981e6c88707 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 21 Mar 2013 18:59:56 +0100 Subject: rknanoutils: add dfu tool This tool can upload a firmware to the device in DFU mode. The protocol is the same as the rk27xx devices except that it can load a bigger (unlimited ?) firmware. Change-Id: Ic9d4c5087629a9156f9d5d5cdc80767e6359c431 --- utils/rknanoutils/rkload/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utils/rknanoutils/rkload/Makefile (limited to 'utils/rknanoutils/rkload/Makefile') diff --git a/utils/rknanoutils/rkload/Makefile b/utils/rknanoutils/rkload/Makefile new file mode 100644 index 0000000000..dbeba3387b --- /dev/null +++ b/utils/rknanoutils/rkload/Makefile @@ -0,0 +1,20 @@ +DEFINES= +CC=gcc +LD=gcc +CFLAGS=-O3 -g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES) +LDFLAGS=`pkg-config --libs libusb-1.0` +BINS=rkloader + +all: $(BINS) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +sbtoelf: rkloader.o + $(LD) -o $@ $^ $(LDFLAGS) + +clean: + rm -fr *.o + +veryclean: + rm -rf $(BINS) -- cgit v1.2.3