Re: Cross Compiling driver for PPC

From: Nathael Pajani <hidden>
Date: 2006-01-04 13:40:56

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help