Commit 7e674dfa authored by Cody P Schafer's avatar Cody P Schafer Committed by Peter Korsgaard
Browse files

powerpc: add powerpc64 and powerpc64le support



This enables powerpc64 and powerpc64le. Currently, le needs at least
glibc 2.19 and gcc 4.9.0. For gdb, 7.7.1 works (added in an earlier
patch).

[Peter: also disallow gcc 4.8 for ppc64le]
Signed-off-by: default avatarCody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 32a47182
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ export HOSTARCH := $(shell uname -m | \
	    -e s/sun4u/sparc64/ \
	    -e s/arm.*/arm/ \
	    -e s/sa110/arm/ \
	    -e s/ppc64/powerpc/ \
	    -e s/ppc64/powerpc64/ \
	    -e s/ppc/powerpc/ \
	    -e s/macppc/powerpc/\
	    -e s/sh.*/sh/)
+12 −1
Original line number Diff line number Diff line
@@ -140,6 +140,16 @@ config BR2_powerpc
	bool "PowerPC"
	help
	  PowerPC is a RISC architecture created by Apple-IBM-Motorola alliance.
	  Big endian.
	  http://www.power.org/
	  http://en.wikipedia.org/wiki/Powerpc

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

@@ -148,6 +158,7 @@ config BR2_powerpc64le
	select BR2_ARCH_IS_64
	help
	  PowerPC is a RISC architecture created by Apple-IBM-Motorola alliance.
	  Little endian.
	  http://www.power.org/
	  http://en.wikipedia.org/wiki/Powerpc

@@ -329,7 +340,7 @@ if BR2_nios2
source "arch/Config.in.nios2"
endif

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

+2 −1
Original line number Diff line number Diff line
@@ -150,10 +150,11 @@ config BR2_POWERPC_SOFT_FLOAT

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

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

config BR2_GCC_TARGET_TUNE
+2 −1
Original line number Diff line number Diff line
@@ -184,7 +184,8 @@ config BR2_LINUX_KERNEL_BZIMAGE

config BR2_LINUX_KERNEL_ZIMAGE
	bool "zImage"
	depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || \
	depends on BR2_arm || BR2_armeb || BR2_powerpc || \
		   BR2_powerpc64 || BR2_powerpc64le || BR2_sparc || \
		   BR2_sh || BR2_sh64 || BR2_xtensa

config BR2_LINUX_KERNEL_APPENDED_ZIMAGE
+1 −1
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ endif
ifeq ($(BR2_m68k),y)
BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
endif
ifeq ($(BR2_powerpc)$(BR2_ENDIAN),yBIG)
ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
endif

Loading