<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/29322">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">crossgcc: LLVM: Build only useful targets<br><br>LLVM supports a lot of CPU targets. Build only those that we might need.<br><br>Note that I didn't enable RISCV yet, because it's marked experimental in<br>LLVM 6.0. I also didn't enable PowerPC, because coreboot's PowerPC<br>support is very dysfunctional.<br><br>This brings LLVM/clang's contribution to util/crossgcc/xgcc from 1.9 GiB<br>down to 1.7 GiB.<br><br>Change-Id: Ib92a90cd5b13ab84c9f15f1b18cff7a1f513e219<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M util/crossgcc/buildgcc<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/29322/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc</span><br><span>index dea42ad..38ed24b 100755</span><br><span>--- a/util/crossgcc/buildgcc</span><br><span>+++ b/util/crossgcc/buildgcc</span><br><span>@@ -864,6 +864,8 @@</span><br><span> </span><br><span> build_LLVM() {</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   LLVM_TARGETS="AArch64;ARM;Mips;X86"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>      cd .. || exit 1</span><br><span>      ln -sf "$PWD/$CFE_DIR"  "$LLVM_DIR/tools/clang"</span><br><span>  ln -sf "$PWD/$CTE_DIR"  "$LLVM_DIR/tools/clang/tools/extra"</span><br><span>@@ -872,7 +874,8 @@</span><br><span> </span><br><span>    $CMAKE -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$DESTDIR$TARGETDIR" \</span><br><span>                 -DCLANG_VENDOR="coreboot toolchain v$CROSSGCC_VERSION $CROSSGCC_DATE - " \</span><br><span style="color: hsl(0, 100%, 40%);">-            -DCMAKE_BUILD_TYPE=Release ../$LLVM_DIR || touch .failed</span><br><span style="color: hsl(120, 100%, 40%);">+              -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="$LLVM_TARGETS" \</span><br><span style="color: hsl(120, 100%, 40%);">+                ../$LLVM_DIR || touch .failed</span><br><span>        # shellcheck disable=SC2086</span><br><span>  $MAKE $JOBS || touch .failed</span><br><span>         $MAKE install || touch .failed</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/29322">change 29322</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/29322"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ib92a90cd5b13ab84c9f15f1b18cff7a1f513e219 </div>
<div style="display:none"> Gerrit-Change-Number: 29322 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>