kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Where is the version.h?
@ 2014-01-27  2:05 parmenides
  2014-01-27 10:20 ` Kristof Provost
  2014-01-27 15:10 ` Valdis.Kletnieks at vt.edu
  0 siblings, 2 replies; 6+ messages in thread
From: parmenides @ 2014-01-27  2:05 UTC (permalink / raw)
  To: kernelnewbies

Hi,

According to LDD3, the linux/module.h automatically includes the
linux/version, which define some macros to help test the kernel version.
But I search the source tree, and can not find version.h in
include/linux. Where can I find it?

Thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Where is the version.h?
  2014-01-27  2:05 Where is the version.h? parmenides
@ 2014-01-27 10:20 ` Kristof Provost
  2014-01-27 18:57   ` parmenides
  2014-01-27 15:10 ` Valdis.Kletnieks at vt.edu
  1 sibling, 1 reply; 6+ messages in thread
From: Kristof Provost @ 2014-01-27 10:20 UTC (permalink / raw)
  To: kernelnewbies

On 2014-01-27 10:05:05 (+0800), parmenides <mobile.parmenides@gmail.com> wrote:
> According to LDD3, the linux/module.h automatically includes the
> linux/version, which define some macros to help test the kernel version.
> But I search the source tree, and can not find version.h in
> include/linux. Where can I find it?
> 
It lives in include/generated/uapi/linux/version.h

If you've never built a kernel in your tree you won't find it though,
because it's created from the Makefile. Look for version_h and
filechk_version.h.

Regards,
Kristof

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Where is the version.h?
  2014-01-27  2:05 Where is the version.h? parmenides
  2014-01-27 10:20 ` Kristof Provost
@ 2014-01-27 15:10 ` Valdis.Kletnieks at vt.edu
  1 sibling, 0 replies; 6+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-01-27 15:10 UTC (permalink / raw)
  To: kernelnewbies

On Mon, 27 Jan 2014 10:05:05 +0800, parmenides said:

> According to LDD3, the linux/module.h automatically includes the
> linux/version, which define some macros to help test the kernel version.
> But I search the source tree, and can not find version.h in
> include/linux. Where can I find it?

It's auto-generated.  You need to run at least a 'make prepare' in the
kernel tree (though you'll probably want to go ahead and actually build and
boot a kernel to develop against).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140127/fe36c92e/attachment-0001.bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Where is the version.h?
  2014-01-27 10:20 ` Kristof Provost
@ 2014-01-27 18:57   ` parmenides
  2014-01-27 19:09     ` Valdis.Kletnieks at vt.edu
  0 siblings, 1 reply; 6+ messages in thread
From: parmenides @ 2014-01-27 18:57 UTC (permalink / raw)
  To: kernelnewbies



? 2014/1/27 18:20, Kristof Provost wrote:

> It lives in include/generated/uapi/linux/version.h
>

Accroding to LDD3, version.h is included with the path 
"linux/version.h", therefore I think the
	"include/generated/uapi/linux/version.h"
might be symbolic linked to
		"include/linux/version.h"
during compilation. Is this the case?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Where is the version.h?
  2014-01-27 18:57   ` parmenides
@ 2014-01-27 19:09     ` Valdis.Kletnieks at vt.edu
  2014-01-28  8:26       ` parmenides
  0 siblings, 1 reply; 6+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-01-27 19:09 UTC (permalink / raw)
  To: kernelnewbies

On Tue, 28 Jan 2014 02:57:51 +0800, parmenides said:

> Accroding to LDD3, version.h is included with the path
> "linux/version.h", therefore I think the
> 	"include/generated/uapi/linux/version.h"
> might be symbolic linked to
> 		"include/linux/version.h"
> during compilation. Is this the case?

No, the build gets done with a -Iinclude/generated/uapi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140127/e52825c7/attachment.bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Where is the version.h?
  2014-01-27 19:09     ` Valdis.Kletnieks at vt.edu
@ 2014-01-28  8:26       ` parmenides
  0 siblings, 0 replies; 6+ messages in thread
From: parmenides @ 2014-01-28  8:26 UTC (permalink / raw)
  To: kernelnewbies


? 2014/1/28 3:09, Valdis.Kletnieks at vt.edu wrote:

> No, the build gets done with a -Iinclude/generated/uapi


So, I get it. Thanks for your reply!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-28  8:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27  2:05 Where is the version.h? parmenides
2014-01-27 10:20 ` Kristof Provost
2014-01-27 18:57   ` parmenides
2014-01-27 19:09     ` Valdis.Kletnieks at vt.edu
2014-01-28  8:26       ` parmenides
2014-01-27 15:10 ` Valdis.Kletnieks at vt.edu

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).