Yes, there are variables to set the commit to use for both the kernel and for Clang and LLVM.<div><br></div><div>I would also recommend using the vexpress target at least for now as it requires the fewest patches and works with the upstream kernel. </div>
<div><br></div><div>If you look in toolchain/clang/<a href="http://clang.mk">clang.mk</a> you will see the following:</div><div><br></div><div><div>LLVM_COMMIT    = &quot;baabdecbb9bf5b32fa81b1e2830ab13076d549f1&quot;</div>
<div>CLANG_COMMIT   = &quot;953a61f26bf79932b9699b09add4c388764de170&quot;</div><div><br></div><div>These set the version of clang and LLVM to use to currently work around an issue with the latest version of clang that segfaults when building the kernel.</div>
<div><br></div><div>-Mark</div><br><div class="gmail_quote">On Mon, Mar 4, 2013 at 8:11 AM, Marcelo Sousa <span dir="ltr">&lt;<a href="mailto:marceloabsousa@gmail.com" target="_blank">marceloabsousa@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can I specify somewhere my version of the linux kernel and my version<br>
of LLVM? I just want to produce the bytecode files.<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Mar 4, 2013 at 4:07 PM, Behan Webster &lt;<a href="mailto:behanw@converseincode.com">behanw@converseincode.com</a>&gt; wrote:<br>
&gt; On 03/04/13 10:57, Marcelo Sousa wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m getting the following error when trying to build x86:<br>
&gt;&gt;<br>
&gt;&gt; ---------------------------------------------------------------------<br>
&gt;&gt; Patching LLVM...<br>
&gt;&gt; ---------------------------------------------------------------------<br>
&gt;&gt; (cd /home/scratch/llvm-setup/toolchain/clang/src/llvm &amp;&amp; quilt push -a)<br>
&gt;&gt; Applying patch patches/0002-pax-linux-llvm-x86_handle-empty-archive.patch<br>
&gt;&gt; can&#39;t find file to patch at input line 15<br>
&gt;&gt; Perhaps you used the wrong -p or --strip option?<br>
&gt;&gt; The text leading up to this was:<br>
&gt;&gt; --------------------------<br>
&gt;&gt; |From 7cb2d39b461c58df2583a6881f42b18c30f1eafb Mon Sep 17 00:00:00 2001<br>
&gt;&gt; |From: =?UTF-8?q?Jan-Simon=20M=C3=B6ller?= &lt;<a href="mailto:dl9pf@gmx.de">dl9pf@gmx.de</a>&gt;<br>
&gt;&gt; |Date: Tue, 10 Jul 2012 12:37:24 +0200<br>
&gt;&gt; |Subject: [PATCH 2/6] pax-linux-llvm x86_handle-empty-archive.patch<br>
&gt;&gt; |<br>
&gt;&gt; |Patch from series at<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html</a><br>
&gt;&gt; by PaX Team.<br>
&gt;&gt; |---<br>
&gt;&gt; | lib/Linker/LinkItems.cpp |    5 ++++-<br>
&gt;&gt; | 1 files changed, 4 insertions(+), 1 deletions(-)<br>
&gt;&gt; |<br>
&gt;&gt; |diff --git a/lib/Linker/LinkItems.cpp b/lib/Linker/LinkItems.cpp<br>
&gt;&gt; |index 52a0d17..2782196 100644<br>
&gt;&gt; |--- a/lib/Linker/LinkItems.cpp<br>
&gt;&gt; |+++ b/lib/Linker/LinkItems.cpp<br>
&gt;&gt; --------------------------<br>
&gt;&gt; No file to patch.  Skipping patch.<br>
&gt;&gt; 1 out of 1 hunk ignored<br>
&gt;&gt; Patch patches/0002-pax-linux-llvm-x86_handle-empty-archive.patch does<br>
&gt;&gt; not apply (enforce with -f)<br>
&gt;&gt; make: *** [/home/scratch/llvm-setup/toolchain/clang/state/llvm-patch]<br>
&gt;&gt; Error 1<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Any ideas of what&#39;s going wrong?<br>
&gt;&gt;<br>
&gt; The x86_64 build is broken (known issue). The maintainer of that target is<br>
&gt; working on it. However he&#39;s away on business right now, so he has less time<br>
&gt; to spend on it than normal.<br>
&gt;<br>
&gt; Due to the nature of our project, we need to work from the HEAD of the Linux<br>
&gt; Kernel and LLVM project, which means things can break easily.<br>
&gt;<br>
&gt; We should probably provide a config file which allows you to compile an<br>
&gt; eariler version of our project which does work.<br>
&gt;<br>
&gt; Behan<br>
&gt;<br>
&gt; --<br>
&gt; Behan Webster<br>
&gt; <a href="mailto:behanw@converseincode.com">behanw@converseincode.com</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; LLVMLinux mailing list<br>
&gt; <a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
&gt; <a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br>
_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br>
</div></div></blockquote></div><br></div>