2010-08-20 23:41:04

by runcoderen

[permalink] [raw]
Subject: version.h

hi all:
the LDD 3rd edition is based on linux-2.6.10.
Thus I downloaded the special kernel code.

but it can't find the version.h file.

the path I try to find is linux-2.6.10/include/linux
--

/****************************************
http://runcoderen.wordpress.com/
****************************************/


2010-08-21 00:48:43

by Randy Dunlap

[permalink] [raw]
Subject: Re: version.h

On Sat, 21 Aug 2010 07:40:57 +0800 runcoderen wrote:

> hi all:
> the LDD 3rd edition is based on linux-2.6.10.
> Thus I downloaded the special kernel code.
>
> but it can't find the version.h file.
>
> the path I try to find is linux-2.6.10/include/linux
> --

Hi,

Since linux 2.6.25, include/linux/version.h is a generated file.
I.e., it is produced at kernel make/build time.

2.6.24 and before do have include/linux/version.h.


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

2010-08-21 21:00:47

by Randy Dunlap

[permalink] [raw]
Subject: Re: version.h

On Sat, 21 Aug 2010 08:52:17 +0800 runcoderen wrote:

> hi Randy:
> but I donwload linux kernel source code version is 2.6.10

Yep, my bad. In all of 2.6, version.h is a generated file.
(The trees where I found it were not clean, i.e., they already contained
the generated file.)


> 在 2010-08-20五的 17:48 -0700,Randy Dunlap写道:
> > On Sat, 21 Aug 2010 07:40:57 +0800 runcoderen wrote:
> >
> > > hi all:
> > > the LDD 3rd edition is based on linux-2.6.10.
> > > Thus I downloaded the special kernel code.
> > >
> > > but it can't find the version.h file.
> > >
> > > the path I try to find is linux-2.6.10/include/linux
> > > --
> >
> > Hi,
> >
> > Since linux 2.6.25, include/linux/version.h is a generated file.
> > I.e., it is produced at kernel make/build time.
> >
> > 2.6.24 and before do have include/linux/version.h.


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

2010-08-23 02:20:55

by Cong Wang

[permalink] [raw]
Subject: Re: version.h

On Sat, Aug 21, 2010 at 07:40:57AM +0800, runcoderen wrote:
>hi all:
>the LDD 3rd edition is based on linux-2.6.10.
>Thus I downloaded the special kernel code.
>
>but it can't find the version.h file.
>
>the path I try to find is linux-2.6.10/include/linux


This file is generated by the top Makefile.