« Return to Thread: Weird strings in kernel uname when cross-compiling

Re: Weird strings in kernel uname when cross-compiling

by Josh Boyer-4 :: Rate this Message:

Reply to Author | View in Thread

On Thu, 04 Dec 2008 12:41:05 +0100
"A. Nolson" <alohanono@...> wrote:

> Hi all,
>
>  anybody knows why every time I cross-compile my kernel (Denx 4.2
> cross-compiling chain ) I get an extra string in my vermagic like this
>
> 2.6.24-rc3-gd7ed933b-dirty
>
> when my kernel's ( secretlabs 2.6.24-rc3) makefile has this parameters:
>
> VERSION = 2
> PATCHLEVEL = 6
> SUBLEVEL = 24
> EXTRAVERSION = -rc3
>
> (So no -gd7ed933b-dirty anywhere... )
>
>  Having that is a bit annoying when I try to natively compile modules,
> so I need to workaround it by copying  that extra string into my other
> Makefiles. Anybody knows how to get rid of it?

It gets added on if you are building from a git repository and you have
CONFIG_LOCALVERSION_AUTO set.  Disable that and it should go away.

(BTW, a quick grep in the top level Makefile would have told you all
that.)

josh
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@...
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

 « Return to Thread: Weird strings in kernel uname when cross-compiling