* Weird strings in kernel uname when cross-compiling
@ 2008-12-04 11:41 A. Nolson
2008-12-04 11:44 ` Josh Boyer
0 siblings, 1 reply; 3+ messages in thread
From: A. Nolson @ 2008-12-04 11:41 UTC (permalink / raw)
To: linuxppc-embedded
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?
/Albert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Weird strings in kernel uname when cross-compiling
2008-12-04 11:41 Weird strings in kernel uname when cross-compiling A. Nolson
@ 2008-12-04 11:44 ` Josh Boyer
2008-12-04 16:01 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Josh Boyer @ 2008-12-04 11:44 UTC (permalink / raw)
To: A. Nolson; +Cc: linuxppc-embedded
On Thu, 04 Dec 2008 12:41:05 +0100
"A. Nolson" <alohanono@gmail.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Weird strings in kernel uname when cross-compiling
2008-12-04 11:44 ` Josh Boyer
@ 2008-12-04 16:01 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2008-12-04 16:01 UTC (permalink / raw)
To: A. Nolson, Josh Boyer, linuxppc-embedded
Dear Albert,
In message <20081204064414.3b72ba91@zod.rchland.ibm.com> Josh Boyer wrote:
>
> > 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
...
> > 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 seems you don;t use the kernel's Makefile to build your modules,
which is a problem in itself. You should fix that first.
> 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.
Note that disabling this is strongly discouraged as the "annoying
extra string" is extremely useful - it allows for exact version
ideltification of the kernel you are using, including the fact that
you have modified but uncommited files in your tree.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The universe, they said, depended for its operation on the balance of
four forces which they identified as charm, persuasion, uncertainty
and bloody-mindedness. -- Terry Pratchett, "The Light Fantastic"
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-04 16:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 11:41 Weird strings in kernel uname when cross-compiling A. Nolson
2008-12-04 11:44 ` Josh Boyer
2008-12-04 16:01 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).