[coreboot-gerrit] Change in coreboot[master]: util/crossgcc: Build Linux toolchain
Patrick Rudolph (Code Review)
gerrit at coreboot.org
Wed Mar 14 16:04:39 CET 2018
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/25151
Change subject: util/crossgcc: Build Linux toolchain
......................................................................
util/crossgcc: Build Linux toolchain
Add support for building Linux toolchains: i386, amd64, arm64.
Change-Id: I3bb0c39077859551568f2945f6475f9b241f7ccc
Signed-off-by: Patrick Rudolph <patrick.rudolph at 9elements.com>
---
M util/crossgcc/Makefile
M util/crossgcc/buildgcc
2 files changed, 8 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/25151/1
diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile
index 4ad2c94..ffe0d76 100644
--- a/util/crossgcc/Makefile
+++ b/util/crossgcc/Makefile
@@ -46,15 +46,18 @@
###########################################################
build-i386:
@$(MAKE) build_tools BUILD_PLATFORM=i386-elf
+ @$(MAKE) build_tools BUILD_PLATFORM=i386-linux
build-x64:
@$(MAKE) build_tools BUILD_PLATFORM=x86_64-elf
+ @$(MAKE) build_tools BUILD_PLATFORM=x86_64-linux
build-arm:
@$(MAKE) build_tools BUILD_PLATFORM=arm-eabi
build-aarch64:
@$(MAKE) build_tools BUILD_PLATFORM=aarch64-elf
+ @$(MAKE) build_tools BUILD_PLATFORM=aarch64-linux
build-mips:
@$(MAKE) build_tools BUILD_PLATFORM=mipsel-elf
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 743937a..26bd71c 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -572,8 +572,8 @@
printf " (defaults to $TARGETARCH)\n"
printf " [-S|--scripting] build scripting support for GDB\n\n"
printf "Platforms for GCC & GDB:\n"
- printf " x86_64 i386-elf i386-mingw32 mipsel-elf riscv-elf arm aarch64\n"
- printf " powerpc64le-linux-gnu nds32le-elf\n\n"
+ printf " x86_64 x86_64-linux i386-elf i386-linux i386-mingw32 mipsel-elf riscv-elf\n"
+ printf " arm aarch64 aarch64-linux powerpc64le-linux-gnu nds32le-elf\n\n"
}
printversion() {
@@ -948,8 +948,10 @@
printf "Building toolchain using %d thread(s).\n\n" "$THREADS"
case "$TARGETARCH" in
+ x86_64-linux) ;;
x86_64-elf) ;;
x86_64*) TARGETARCH=x86_64-elf;;
+ i386-linux) ;;
i386-elf) ;;
i386-mingw32) ;;
mipsel-elf) ;;
@@ -957,6 +959,7 @@
powerpc64*-linux*) ;;
i386*) TARGETARCH=i386-elf;;
arm*) TARGETARCH=arm-eabi;;
+ aarch64-linux) ;;
aarch64*) TARGETARCH=aarch64-elf;;
nds32le-elf) ;;
*) printf "${red}WARNING: Unsupported architecture $TARGETARCH.${NC}\n\n"; ;;
--
To view, visit https://review.coreboot.org/25151
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: I3bb0c39077859551568f2945f6475f9b241f7ccc
Gerrit-Change-Number: 25151
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph at 9elements.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180314/ef557ddc/attachment.html>
More information about the coreboot-gerrit
mailing list