Index: tt-loader/Makefile
===================================================================
--- tt-loader/Makefile	(revision 11)
+++ tt-loader/Makefile	(revision 12)
@@ -5,5 +5,5 @@
 LDFLAGS = -g $(LIBS)
 APP_NAME = tt-loader
-APP_VERSION = 0.1
+APP_VERSION = 0.2
 
 # Adapt this to your system
@@ -11,5 +11,8 @@
 DIS_ADDR ?= 0
 
-OBJS = main.o
+# You can overide the name of the extracted MTD partition to get the kernel
+KERNEL_MTD ?= mtd4
+
+OBJS = main.o crc32.o
 
 all: $(APP_NAME)
@@ -36,3 +39,7 @@
 	rm -f $(@F).elf
 
+# Extract kernel from mtd4 nand partition extraction
+kernel.bin: $(KERNEL_MTD)
+	./kernel-extract.sh $^ $@
+
 .PHONY: all clean 2nd
