Skip to contentSkip to conversation

linux.inc: unset CONFIG_LOCALVERSION_AUTO to not get 2.6.27.2-svn8826-dirty26 like names

PATCH In review Marcin Juszkiewicz 2 participants 3 messages Apr 22, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux.inc: unset CONFIG_LOCALVERSION_AUTO to not get 2.6.27.2-svn8826-dirty26 like names

Year ago we removed CONFIG_LOCALVERSION from .config to get more sane names of kernels. Today with 2.6.27.2 I got 2.6.27.2-svn8826-dirty26 kernel which was 2.6.27.2-svn8826-dirty9 on device so no modules ;(

This patch changes this by unsetting CONFIG_LOCALVERSION_AUTO variable.

---
 recipes/linux/linux.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/linux/linux.inc +3 -0
index 984efac..5a4a11f 100644
@@ -98,8 +98,11 @@ do_configure_prepend() {
             -e '/CONFIG_LOGO=/d' \
             -e '/CONFIG_LOGO_LINUX_CLUT224=/d' \
             -e '/CONFIG_LOCALVERSION/d' \
+            -e '/CONFIG_LOCALVERSION_AUTO/d' \
 	    < '${WORKDIR}/defconfig' >>'${S}/.config'
 
+        echo 'CONFIG_LOCALVERSION=""' >>${S}/.config
+        echo '# CONFIG_LOCALVERSION_AUTO is not set' >>${S}/.config
         #
         # root-over-nfs-over-usb-eth support. Limited, but should cover some cases.
         # Enable this by setting a proper CMDLINE_NFSROOT_USB.
Signature · 1 line
1.6.3.rc0
Acked-by on v1 1/1
#1 lore raw

Please after it gets into dev, propose it to stable since it is quite useful.

Quoted 39 lines · Marcin Juszkiewicz

Year ago we removed CONFIG_LOCALVERSION from .config to get more sane names of kernels. Today with 2.6.27.2 I got 2.6.27.2-svn8826-dirty26 kernel which was 2.6.27.2-svn8826-dirty9 on device so no modules ;(

This patch changes this by unsetting CONFIG_LOCALVERSION_AUTO variable.

---
 recipes/linux/linux.inc |    3 +++

 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/linux/linux.inc +1 -0
index 984efac..5a4a11f 100644
@@ -98,8 +98,11 @@ do_configure_prepend() {
             -e '/CONFIG_LOGO=/d' \
             -e '/CONFIG_LOGO_LINUX_CLUT224=/d' \
             -e '/CONFIG_LOCALVERSION/d' \
+            -e '/CONFIG_LOCALVERSION_AUTO/d' \

           < '${WORKDIR}/defconfig' >>'${S}/.config'

+        echo 'CONFIG_LOCALVERSION=""' >>${S}/.config
+        echo '# CONFIG_LOCALVERSION_AUTO is not set' >>${S}/.config #

        # root-over-nfs-over-usb-eth support. Limited, but should cover some cases.
        # Enable this by setting a proper CMDLINE_NFSROOT_USB.
--
1.6.3.rc0

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
#2 lore raw

Dnia środa, 22 kwietnia 2009 o 18:23:29 Otavio Salvador napisał(a):

Quoted 2 lines

Please after it gets into dev, propose it to stable since it is quite useful.

It is in reverse :D I did that patch for stable but all things needs to be in .dev first so... ;D

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz