Where is the version.h?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Mon Jan 27 10:10:56 EST 2014


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 


More information about the Kernelnewbies mailing list