<div dir="ltr">Hi,<div>     I am trying to include the path of the linux kernel(source located in  output/build/linux) in one of the makefile which is located outside the linux directory. </div><div><br></div><div>KERNEL_DIR := $(LINUX_DIR).</div><div><br></div><div>But when i try to refer the  KERNEL_DIR , it is empty.</div><div><br></div><div>Am i missing something here, can some one please help?</div><div><br></div><div>I used LINUX_DIR variable as it is mentioned in the BR doc</div><div><br></div><div>

<p style="color:rgb(0,0,0);font-family:Georgia,serif;font-size:medium;text-decoration-style:initial;text-decoration-color:initial">You may also reference (but you may<span> </span><span class="gmail-strong" style="font-weight:bold"><strong>not</strong></span><span> </span>set!) those variables:</p><div class="gmail-itemizedlist" style="margin:0px;color:rgb(0,0,0);font-family:Georgia,serif;font-size:medium;text-decoration-style:initial;text-decoration-color:initial"><ul class="gmail-itemizedlist" style="line-height:1.2;list-style-position:outside;list-style-type:disc"><li class="gmail-listitem" style="margin-top:0.5em"><code class="gmail-literal" style="font-family:"Courier New",Courier,monospace;color:navy">LINUX_DIR</code><span> </span>contains the path to where the Linux kernel has been extracted and built.</li><li class="gmail-listitem" style="margin-top:0.5em"><code class="gmail-literal" style="font-family:"Courier New",Courier,monospace;color:navy">LINUX_VERSION</code><span> </span>contains the version string as configured by the user.</li><li class="gmail-listitem" style="margin-top:0.5em"><code class="gmail-literal" style="font-family:"Courier New",Courier,monospace;color:navy">LINUX_VERSION_PROBED</code><span> </span>contains the real version string of the kernel, retrieved with running<span> </span><code class="gmail-literal" style="font-family:"Courier New",Courier,monospace;color:navy">make -C $(LINUX_DIR) kernelrelease</code></li><li class="gmail-listitem" style="margin-top:0.5em"><code class="gmail-literal" style="font-family:"Courier New",Courier,monospace;color:navy">KERNEL_ARCH</code><span> </span>contains the name of the current architecture, like<span> </span><code class="gmail-literal" style="font-family:"Courier New",Courier,monospace;color:navy">arm</code>,<span> </span><code class="gmail-literal" style="font-family:"Courier New",Courier,monospace;color:navy">mips</code>…</li></ul></div>

Thanks,</div><div>Ravi</div></div>