From: Jose V Beneyto Date: Tue, 27 Aug 2013 18:12:03 +0000 (+0000) Subject: Modified cubieboard's Makefile to get kernel version string instead of hardcode values X-Git-Url: http://gitweb/?a=commitdiff_plain;h=2dd7e83a2ddfacd81d29665c5cf600c8085ecf7e;p=bootloader.git Modified cubieboard's Makefile to get kernel version string instead of hardcode values --- 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