[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: compiling with armcc / codesourcery libs
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2007-11-28 17:28:02
Message-ID: 200711280928.02146.vda.linux () googlemail ! com
[Download RAW message or body]

On Tuesday 27 November 2007 02:37, Dave Rodgman wrote:
> Hi all,
>
> I'm looking to port the make system to cross-compile for ARM Linux,
> using the ARM toolchain (armcc, armlink etc), and the CodeSourcery
> gcc libraries.
>
> Can anyone offer any advice on where to start? Ideally I'd like to
> get it so that I can do something like:

This is how I'm doing cross-compiles here:

# glibc
#export ARCH=i386
# uclibc
export ARCH=i386
export CROSS_COMPILE=i486-linux-uclibc-
# uclibc64
#export ARCH=x86_64
#export CROSS_COMPILE=x86_64-pc-linux-gnu-
# arm eabi
#export ARCH=arm
#export CROSS_COMPILE=arm-linux-uclibceabi-

test x"$CROSS_COMPILE" = x || cross="CROSS_COMPILE=$CROSS_COMPILE"

make $cross "$@"

By uncommenting relevant part on top, I can do different cross-builds.

> anyone tried anything like this before?

I olny ever tried cross-compiles with GNU toolchain, built from sources
locally.
If you want to do the same, but having difficulty building
tollchain, I can help.
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic