On 4/9/07, Franklin <[EMAIL PROTECTED]> wrote: > 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-
Useful but the source tree I am working on tries to build for multiple CPU types (currently three). I cannot commit change to the Makefile that is platform specific. _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
