From 2dd7e83a2ddfacd81d29665c5cf600c8085ecf7e Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Tue, 27 Aug 2013 18:12:03 +0000 Subject: [PATCH] Modified cubieboard's Makefile to get kernel version string instead of hardcode values --- devices/cubieboard/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devices/cubieboard/Makefile b/devices/cubieboard/Makefile index 9bfcde3..8f27731 100644 --- a/devices/cubieboard/Makefile +++ b/devices/cubieboard/Makefile @@ -9,6 +9,8 @@ ZIMAGE = $(PWD)/../../../kernel/cubieboard/work/zImage 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 @@ -28,7 +30,7 @@ $(WORK): $(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 -- 2.26.2