Commit a426a919 authored by Jeff Bailey's avatar Jeff Bailey Committed by Peter Korsgaard
Browse files

Add support for powerpc64le



This patch adds support for powerpc64le-linux-gnu.  This includes
needed patches to fakeroot and gmp.

gmp patch is from upstream HG tree.
fakeroot patch is from Ubuntu written by Adam Conrad.

Signed-off-by: default avatarJeff Bailey <jeffbailey@google.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 696668b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ KERNEL_ARCH := $(shell echo "$(ARCH)" | sed -e "s/-.*//" \
	-e s/aarch64/arm64/ \
	-e s/bfin/blackfin/ \
	-e s/parisc64/parisc/ \
	-e s/powerpc64/powerpc/ \
	-e s/powerpc64.*/powerpc/ \
	-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
	-e s/sh.*/sh/ \
	-e s/microblazeel/microblaze/)
+9 −1
Original line number Diff line number Diff line
@@ -143,6 +143,14 @@ config BR2_powerpc
	  http://www.power.org/
	  http://en.wikipedia.org/wiki/Powerpc

config BR2_powerpc64le
	bool "PowerPC64 (little endian)"
	select BR2_ARCH_IS_64
	help
	  PowerPC is a RISC architecture created by Apple-IBM-Motorola alliance.
	  http://www.power.org/
	  http://en.wikipedia.org/wiki/Powerpc

config BR2_sh
	bool "SuperH"
	help
@@ -321,7 +329,7 @@ if BR2_nios2
source "arch/Config.in.nios2"
endif

if BR2_powerpc
if BR2_powerpc || BR2_powerpc64le
source "arch/Config.in.powerpc"
endif

+5 −3
Original line number Diff line number Diff line
choice
	prompt "Target Architecture Variant"
	depends on BR2_powerpc
	depends on BR2_powerpc || BR2_powerpc64le
	default BR2_generic_powerpc
	help
	  Specific CPU variant to use
@@ -74,7 +74,7 @@ endchoice

choice
	prompt "Target ABI"
	depends on BR2_powerpc
	depends on BR2_powerpc || BR2_powerpc64le
	default BR2_powerpc_SPE if BR2_powerpc_8540 || BR2_powerpc_8548
	default BR2_powerpc_CLASSIC
	help
@@ -99,9 +99,11 @@ config BR2_POWERPC_SOFT_FLOAT

config BR2_ARCH
	default "powerpc"	if BR2_powerpc
	default "powerpc64le"	if BR2_powerpc64le

config BR2_ENDIAN
	default "BIG"
	default "BIG"    if BR2_powerpc
	default "LITTLE" if BR2_powerpc64le

config BR2_GCC_TARGET_TUNE
	default "401"		if BR2_powerpc_401
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ choice
	prompt "Binutils Version"
	depends on !BR2_arc
	default BR2_BINUTILS_VERSION_2_21 if (BR2_mips || BR2_mipsel || BR2_sh)
	default BR2_BINUTILS_VERSION_2_24 if BR2_microblaze
	default BR2_BINUTILS_VERSION_2_24 if BR2_microblaze || BR2_powerpc64le
	default BR2_BINUTILS_VERSION_2_22
	help
	  Select the version of binutils you wish to use.
+29 −0
Original line number Diff line number Diff line
Description: powerpc64le-support.patch: Patch configure to support ppc64el.
Author: Adam Conrad <adconrad@ubuntu.com>

--- fakeroot-1.20.orig/configure
+++ fakeroot-1.20/configure
@@ -6509,6 +6509,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  ppc64-*linux*|powerpc64-*linux*)
 	    LD="${LD-ld} -m elf32ppclinux"
 	    ;;
+	  powerpc64le-*linux*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
 	  s390x-*linux*)
 	    LD="${LD-ld} -m elf_s390"
 	    ;;
@@ -6525,9 +6528,12 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_x86_64"
 	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
+	  ppc-*linux*|powerpc-*linux*)
 	    LD="${LD-ld} -m elf64ppc"
 	    ;;
+	  powerpcle-*linux*)
+	    LD="${LD-ld} -m elf64lppc"
+	    ;;
 	  s390*-*linux*|s390*-*tpf*)
 	    LD="${LD-ld} -m elf64_s390"
 	    ;;
Loading