<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 2:00 PM, Paul Bolle <span dir="ltr"><<a href="mailto:pebolle@tiscali.nl" target="_blank">pebolle@tiscali.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 2015-02-12 at 12:07 +0530, s.rawat wrote:<br>
> Yes the headers are there in the sources of 3.18.5 kernel.But then I<br>
> have to change all the references to linux/<header_files.h> in my<br>
> modules to the path of<br>
> <kernel_source>/include/linux/<header_files.h>.This could be<br>
> corrective action.I am looking for preventive action .<br>
<br>
</span>Changing those preprocessor include lines is certainly the wrong thing<br>
to do.<br>
<span class=""><br>
> CONFIG_LOCALVERSION appends whatever name we want to append after the<br>
> kernel version.<br>
> I was looking for downloading the kernel headers for the custom kernel<br>
> I built whose name has been changed to 3.18.5-custom.<br>
> uname -r give => 3.18.5-custom. :( (cant use it sudo apt-get install<br>
> linux-header-$(uname-r) :(<br>
<br>
</span>What exactly are you trying to achieve? Looking at your original<br>
question it seems this is about the headers in /usr/src/kernels/$(uname<br>
-r). (That is the location used in Fedora.)<br>
<br>
But why do you need those headers? See, these headers in that directory<br>
are for building external modules. Ie, modules not already installed<br>
in /lib/modules/$(uname -r). But that would be easier to do from within<br>
the directory in your home directory where you downloaded the kernel's<br>
source code.</blockquote><div> </div><div>>> Yes I am building the external modules .The headers(linux/<header_files>) I have included the way I have said above. The reason i asked this is becuase my driver modules compiles without any error except it gave warning that certain symbols (function_names_) are undefined in the .ko driver module .These function_names_symbols are declared in the header files I included in my driver code like i said above..</div><div>I compiled did like this : </div><div>make -C <path to kernel sources (compiled kernel - does it matter compile or not compiled?)> SUBDIRS=<path to my driver code placed in my home directory (not inside the kernel sources) modules</div><div>> Compiled successfully except the warnings I stated above.That is the reason i asked to way to install the headers of my compiled kernel.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
And _please_ don't top post in your answer. That makes it even harder to<br>
determine what it is you actually want to do.<br><span class="HOEnZb"><font color="#888888"><br>
<br>
Paul Bolle<br>
<br>
</font></span></blockquote></div><br></div></div>