From: Nathael Pajani <nathael.pajani@cpe.fr>
To: linuxppc-embedded@ozlabs.org
Subject: Re: Cross Compiling driver for PPC
Date: Wed, 4 Jan 2006 14:44:40 +0100 [thread overview]
Message-ID: <20060104144440.5af3d88d.nathael.pajani@cpe.fr> (raw)
Hi
> We are trying to port a newly developed device driver for powerPC .
> We are unable to compile it for powerpc driver on Host platform.
> Please give us the way to compile the device driver
=20
You need to cross compile, which means having a ggc for powerpc in addition=
to the gcc you have for your developpement machine.
I do not know whether you will find it on the net, usualy you have to recom=
pile gcc (and "ld" and "ar" and so on, the whole gcc toolchain I think) wit=
h specific options
Then you will have a powerpc-linux-gcc (for example) which will be able to =
compile for powerpc
then, you will have some modifications to do in the makefiles: look for thi=
s string: "CROSS_COMPILE" and set it to "powerpc-linux-" (or whatever is th=
e prefix for you gcc).
I also created a ".arch" file at the base of the source tree, containing "p=
pc" and some other modifications in makefiles, but I cannot tell you wich..=
. and wether they are usefull. You'll have to try.
Then add "ARCH=3Dppc" option to the make command when you want to compile y=
our kernel for powerpc.
Have fun.
+++
----=20
Nathael PAJANI
Ing=E9nieur CPE Lyon
nathael.pajani@cpe.fr
next reply other threads:[~2006-01-04 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-04 13:44 Nathael Pajani [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-02 11:52 Cross Compiling driver for PPC venkatajagadeesh p
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=20060104144440.5af3d88d.nathael.pajani@cpe.fr \
--to=nathael.pajani@cpe.fr \
--cc=linuxppc-embedded@ozlabs.org \
/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).