INITRDGZ = $(PWD)/../../../initrd/work/initrd.gz
INITRAMFS = $(PWD)/../../../initramfs/work/initramfs
+KERNEL_VERSION_STRING = $(shell readlink $(ZIMAGE) | sed s/zImage-//)
+
RAMDISK_TYPE = uInitrd
#RAMDISK_TYPE = uInitramfs
$(WORK)/uImage: $(WORK) $(MKIMAGE) $(ZIMAGE)
$(MKIMAGE) -A arm -O linux -a 0x40008000 -e 0x40008000 \
- -T kernel -C none -n "Linux-3.0.76-cubieboard" \
+ -T kernel -C none -n "Linux-$(KERNEL_VERSION_STRING)" \
-d $(ZIMAGE) $(WORK)/uImage
kernel: $(WORK)/uImage