util/crossgcc: Add ppc64el support
Change-Id: I619f7c3cef7f0aaa6fccb3d52f2ac1f6ace6d0d6 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: https://review.coreboot.org/12818 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
68d0e4a5a1
commit
a9f62359e2
14
Makefile.inc
14
Makefile.inc
|
@ -488,7 +488,7 @@ help_toolchain help::
|
||||||
@echo ' clang - Build coreboot clang compiler'
|
@echo ' clang - Build coreboot clang compiler'
|
||||||
@echo ' crossgcc-ARCH - Build cross-compiler for specific architecture'
|
@echo ' crossgcc-ARCH - Build cross-compiler for specific architecture'
|
||||||
@echo ' crosstools-ARCH - Build cross-compiler with GDB for specific architecture'
|
@echo ' crosstools-ARCH - Build cross-compiler with GDB for specific architecture'
|
||||||
@echo ' ARCH can be "i386", "x64", "arm", "aarch64", "mips", or "riscv"'
|
@echo ' ARCH can be "i386", "x64", "arm", "aarch64", "mips", "riscv", or "power8"'
|
||||||
@echo ' Use "make [target] CPUS=#" to build toolchain using multiple cores'
|
@echo ' Use "make [target] CPUS=#" to build toolchain using multiple cores'
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
@ -499,9 +499,9 @@ crossgcc: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc all_without_gdb SKIP_CLANG=1
|
$(MAKE) -C util/crossgcc all_without_gdb SKIP_CLANG=1
|
||||||
|
|
||||||
.PHONY: crossgcc crossgcc-i386 crossgcc-x64 crossgcc-arm crossgcc-aarch64 \
|
.PHONY: crossgcc crossgcc-i386 crossgcc-x64 crossgcc-arm crossgcc-aarch64 \
|
||||||
crossgcc-mips crossgcc-riscv crossgcc-clean iasl clang tools \
|
crossgcc-mips crossgcc-riscv crossgcc-power8 crossgcc-clean iasl \
|
||||||
crosstools-i386 crosstools-x64 crosstools-arm crosstools-aarch64 \
|
clang tools crosstools-i386 crosstools-x64 crosstools-arm \
|
||||||
crosstools-mips crosstools-riscv
|
crosstools-aarch64 crosstools-mips crosstools-riscv crosstools-power8
|
||||||
|
|
||||||
crossgcc-i386: clean-for-update
|
crossgcc-i386: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-i386 SKIP_GDB=1
|
$(MAKE) -C util/crossgcc build-i386 SKIP_GDB=1
|
||||||
|
@ -521,6 +521,9 @@ crossgcc-mips: clean-for-update
|
||||||
crossgcc-riscv: clean-for-update
|
crossgcc-riscv: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-riscv SKIP_GDB=1
|
$(MAKE) -C util/crossgcc build-riscv SKIP_GDB=1
|
||||||
|
|
||||||
|
crossgcc-power8: clean-for-update
|
||||||
|
$(MAKE) -C util/crossgcc build-power8 SKIP_GDB=1
|
||||||
|
|
||||||
crosstools: clean-for-update
|
crosstools: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc all_with_gdb SKIP_CLANG=1
|
$(MAKE) -C util/crossgcc all_with_gdb SKIP_CLANG=1
|
||||||
|
|
||||||
|
@ -548,6 +551,9 @@ crosstools-mips: clean-for-update
|
||||||
crosstools-riscv: clean-for-update
|
crosstools-riscv: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc build-riscv
|
$(MAKE) -C util/crossgcc build-riscv
|
||||||
|
|
||||||
|
crosstools-power8: clean-for-update
|
||||||
|
$(MAKE) -C util/crossgcc build-power8
|
||||||
|
|
||||||
crossgcc-clean: clean-for-update
|
crossgcc-clean: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc clean
|
$(MAKE) -C util/crossgcc clean
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,9 @@ build-mips:
|
||||||
build-riscv:
|
build-riscv:
|
||||||
@$(MAKE) build_tools BUILD_PLATFORM=riscv-elf
|
@$(MAKE) build_tools BUILD_PLATFORM=riscv-elf
|
||||||
|
|
||||||
|
build-power8:
|
||||||
|
@$(MAKE) build_tools BUILD_PLATFORM=powerpc64le-linux-gnu
|
||||||
|
|
||||||
clean_tempfiles:
|
clean_tempfiles:
|
||||||
rm -rf build-*
|
rm -rf build-*
|
||||||
rm -rf binutils-* gcc-* gmp-* libelf-* mpc-* mpfr-*
|
rm -rf binutils-* gcc-* gmp-* libelf-* mpc-* mpfr-*
|
||||||
|
@ -77,5 +80,5 @@ distclean: clean
|
||||||
|
|
||||||
.PHONY: build_gcc build_iasl build_gdb build_clang \
|
.PHONY: build_gcc build_iasl build_gdb build_clang \
|
||||||
all all_with_gdb all_without_gdb build_tools \
|
all all_with_gdb all_without_gdb build_tools \
|
||||||
build-i386 build-x64 build-armv7a build-aarch64 build-mips build-riscv \
|
build-i386 build-x64 build-armv7a build-aarch64 build-mips build-riscv build-power8 \
|
||||||
clean distclean clean_tempfiles
|
clean distclean clean_tempfiles
|
||||||
|
|
|
@ -587,16 +587,17 @@ fi
|
||||||
printversion
|
printversion
|
||||||
|
|
||||||
case "$TARGETARCH" in
|
case "$TARGETARCH" in
|
||||||
x86_64-elf) ;;
|
x86_64-elf) ;;
|
||||||
x86_64*) TARGETARCH=x86_64-elf;;
|
x86_64*) TARGETARCH=x86_64-elf;;
|
||||||
i386-elf) ;;
|
i386-elf) ;;
|
||||||
i386-mingw32) ;;
|
i386-mingw32) ;;
|
||||||
mipsel-elf) ;;
|
mipsel-elf) ;;
|
||||||
riscv-elf) ;;
|
riscv-elf) ;;
|
||||||
i386*) TARGETARCH=i386-elf;;
|
powerpc64le-linux-gnu) ;;
|
||||||
arm*) TARGETARCH=armv7-a-eabi;;
|
i386*) TARGETARCH=i386-elf;;
|
||||||
aarch64*) TARGETARCH=aarch64-elf;;
|
arm*) TARGETARCH=armv7-a-eabi;;
|
||||||
*) printf "${red}WARNING: Unsupported architecture $TARGETARCH.${NC}\n\n"; ;;
|
aarch64*) TARGETARCH=aarch64-elf;;
|
||||||
|
*) printf "${red}WARNING: Unsupported architecture $TARGETARCH.${NC}\n\n"; ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Figure out which packages to build
|
# Figure out which packages to build
|
||||||
|
|
Loading…
Reference in New Issue