[coreboot-gerrit] Change in coreboot[master]: crossgcc: LLVM: Build only useful targets
Jonathan Neuschäfer (Code Review)
gerrit at coreboot.org
Mon Oct 29 13:08:50 CET 2018
Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/29322
Change subject: crossgcc: LLVM: Build only useful targets
......................................................................
crossgcc: LLVM: Build only useful targets
LLVM supports a lot of CPU targets. Build only those that we might need.
Note that I didn't enable RISCV yet, because it's marked experimental in
LLVM 6.0. I also didn't enable PowerPC, because coreboot's PowerPC
support is very dysfunctional.
This brings LLVM/clang's contribution to util/crossgcc/xgcc from 1.9 GiB
down to 1.7 GiB.
Change-Id: Ib92a90cd5b13ab84c9f15f1b18cff7a1f513e219
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
---
M util/crossgcc/buildgcc
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/29322/1
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index dea42ad..38ed24b 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -864,6 +864,8 @@
build_LLVM() {
+ LLVM_TARGETS="AArch64;ARM;Mips;X86"
+
cd .. || exit 1
ln -sf "$PWD/$CFE_DIR" "$LLVM_DIR/tools/clang"
ln -sf "$PWD/$CTE_DIR" "$LLVM_DIR/tools/clang/tools/extra"
@@ -872,7 +874,8 @@
$CMAKE -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$DESTDIR$TARGETDIR" \
-DCLANG_VENDOR="coreboot toolchain v$CROSSGCC_VERSION $CROSSGCC_DATE - " \
- -DCMAKE_BUILD_TYPE=Release ../$LLVM_DIR || touch .failed
+ -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="$LLVM_TARGETS" \
+ ../$LLVM_DIR || touch .failed
# shellcheck disable=SC2086
$MAKE $JOBS || touch .failed
$MAKE install || touch .failed
--
To view, visit https://review.coreboot.org/29322
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib92a90cd5b13ab84c9f15f1b18cff7a1f513e219
Gerrit-Change-Number: 29322
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181029/94b6f195/attachment.html>
More information about the coreboot-gerrit
mailing list