linux.inc: add hook to set a custom localversion
authorKoen Kooi <koen@openembedded.org>
Fri, 31 Dec 2010 09:50:54 +0000 (10:50 +0100)
committerKoen Kooi <koen@openembedded.org>
Fri, 31 Dec 2010 09:50:54 +0000 (10:50 +0100)
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/linux/linux.inc

index 658fe84..2243a65 100644 (file)
@@ -53,6 +53,7 @@ KERNEL_DEVICETREE_xilinx-ml507 = "arch/${ARCH}/boot/dts/virtex440-ml507.dts"
 KERNEL_DEVICETREE_FLAGS = "-R 8 -S 0x3000"
 
 CORTEXA8FIXUP ?= "yes"
+LOCALVERSION ?= ""
 
 python __anonymous () {
 
@@ -134,7 +135,7 @@ do_configure_prepend() {
             -e '/CONFIG_LOCALVERSION_AUTO/d' \
            < '${WORKDIR}/defconfig' >>'${S}/.config'
 
-        echo 'CONFIG_LOCALVERSION=""' >>${S}/.config
+        echo 'CONFIG_LOCALVERSION="${LOCALVERSION}"' >>${S}/.config
         echo '# CONFIG_LOCALVERSION_AUTO is not set' >>${S}/.config
 
         #