powerpc cross compiler issue

Michael Ellerman mpe at ellerman.id.au
Tue May 31 09:07:45 AEST 2016


On Thu, 2016-05-26 at 11:05 +0200, Safa Hamza wrote:

> hello every one
> please can any one suggest to me a powerpc cross compiler package or from
> source, i have downloaded  cross compiler package such as powerpc64le and i
> got a little endian and big endian problem, i  have tried also to download
> eldk cross compiler but i didn't know how  any suggestion please

If you're on Ubuntu:

  $ sudo apt-get install gcc-powerpc-linux-gnu gcc-powerpc64le-linux-gnu libc-dev-powerpc-cross libc-dev-ppc64el-cross

On Fedora I think it's called gcc-powerpc64-linux-gnu.

Then to build a big endian kernel:

  $ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- mrproper
  $ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- ppc64_defconfig
  $ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j 4


To build a little endian kernel:

  $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- mrproper
  $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- ppc64le_defconfig
  $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- -j 4


cheers



More information about the Linuxppc-dev mailing list