From: Michael Ellerman <mpe@ellerman.id.au>
To: Safa Hamza <safahamza1@gmail.com>, linuxppc-dev@lists.ozlabs.org
Subject: Re: powerpc cross compiler issue
Date: Tue, 31 May 2016 09:07:45 +1000 [thread overview]
Message-ID: <1464649665.16938.2.camel@ellerman.id.au> (raw)
In-Reply-To: <CAFwQ9hGFeC2700F3yy4vYVNdbO3vid=9hH_qO-5PbOuRDAHGdw@mail.gmail.com>
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
prev parent reply other threads:[~2016-05-30 23:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 9:05 powerpc cross compiler issue Safa Hamza
2016-05-26 10:02 ` Christophe Leroy
2016-05-26 11:29 ` Safa Hamza
2016-05-30 23:48 ` oliver
2016-05-31 4:20 ` Michael Ellerman
2016-05-30 23:07 ` Michael Ellerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1464649665.16938.2.camel@ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=safahamza1@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).