6ea48cf92b
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
20 lines
301 B
Makefile
20 lines
301 B
Makefile
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)
|