<p dir="ltr"></p>
<p dir="ltr">On Oct 13, 2016 5:23 AM, &quot;Paul Eggleton&quot; &lt;<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Thu, 13 Oct 2016 09:38:08 Paul Eggleton wrote:<br>
&gt; &gt; On Wed, 12 Oct 2016 15:26:15 Martin Jansa wrote:<br>
&gt; &gt; &gt; is this separate variable working correctly?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; It was introduced in:<br>
&gt; &gt; &gt; commit 522ba4c51fff53566678b2689d0d63c393e417b3<br>
&gt; &gt; &gt; Author: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt;<br>
&gt; &gt; &gt; Date:   Fri Sep 11 13:25:46 2015 +0100<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     populate_sdk_base: Fix aarch64 OLDEST_KERNEL sdk issues<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     aarch64 sets OLDEST_KERNEL to 3.14. This stops the aarch64 SDK<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; installing on anything with an older kernel which is clearly incorrect.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     I attempted to extract the correct non-overridden version from the<br>
&gt; &gt; &gt;     data<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; store but it proved problematic and I was running into data store issues.<br>
&gt; &gt; &gt; Those are a separate problem but there isn&#39;t time to fix this right now.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     Instead just code the SDK kernel version separately to work around<br>
&gt; &gt; &gt;     this<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; for now (and fix the autobuilder tests and SDK usage).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; But when I&#39;m using:<br>
&gt; &gt; &gt; OLDEST_KERNEL = &quot;3.2&quot; (default)<br>
&gt; &gt; &gt; SDK_OLDEST_KERNEL = &quot;2.6.32&quot;<br>
&gt; &gt; &gt; because we would like to use SDK on host with older kernel, then<br>
&gt; &gt; &gt; SDK_OLDEST_KERNEL helped to bypass the uname check in environment-setup<br>
&gt; &gt; &gt; script, but then gcc cannot be used, because it fails immediately with:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; FATAL: kernel too old<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; So I&#39;m not sure what this variable are trying to achieve, maybe<br>
&gt; &gt; &gt; autobuilder<br>
&gt; &gt; &gt; tests were only testing setup script and not the actual $CC?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The other option is that it works only when sdk toolchain is built with<br>
&gt; &gt; &gt; default OLDEST_KERNEL (which is lower than OLDEST_KERNEL_aarch64) and only<br>
&gt; &gt; &gt; target bits use OLDEST_KERNEL_aarch64, but those aren&#39;t executed on host<br>
&gt; &gt; &gt; using SDK.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m not sure how this ever could have worked, since it doesn&#39;t enter into<br>
&gt; &gt; the nativesdk-glibc configuration. It seems to me that the glibc recipe<br>
&gt; &gt; needs to be using SDK_OLDEST_KERNEL in place of OLDEST_KERNEL for<br>
&gt; &gt; class-nativesdk.<br>
&gt;<br>
&gt; Thinking about it - even if that were fixed, would setting it to 2.6.32<br>
&gt; actually work on master? We are now using glibc 2.24 and that requires a<br>
&gt; minimum kernel version of 3.2.0.</p>
<p dir="ltr">For x86/x86_64  2.6.32 would still work which is the most common arch for sdk host.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Paul<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Paul Eggleton<br>
&gt; Intel Open Source Technology Centre<br></p>