cross compiling
Franklin
franklin at goodhorse.idv.tw
Mon Apr 9 17:14:04 PDT 2007
Larry Brigman's messages:
> I am trying to switch versions of busybox from 1.2.2 to 1.4.2
> and it looks like the configuration for setting cross compile is now
> different enough that my old method doesn't work.
>
> Previously I just set CROSS_COMPILE and all the various tool env variables
> to point to the correct tool and added any necessary CFLAGS via
> EXTRA_CFLAGS=
>
> It doesn't seem to pick up the CROSS_COMPILE var from the environment when
> doing 'make oldconfig' it has to be added to the command line.
>
> If I don't provide ARCH it makes an assumption and passes -march=i386 to
> the compiler which doesn't work. Adding during 'make oldconfig' doesn't
> get recorded for
> the 'make all'
>
> So the question (which isn't in the FAQ or on google for a recent version)
> is: What is the proper way to configure and make busybox for cross compile?
>
I simply define ARCH and CROSS_COMPILE in the Makefile.
You can search for it in Makefile, about line 175.
ARCH := powerpc
CROSS_COMPILE := powerpc-linux-
Regards,
Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://busybox.net/lists/busybox/attachments/20070410/4c6b8742/attachment.pgp
More information about the busybox
mailing list