Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2007 13:28:38 -0600 (MDT)
From:      Warner Losh <imp@bsdimp.com>
To:        skalla.raabjorn@gmx.de
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Error on installing cross binutils
Message-ID:  <20070913.132838.39164264.imp@bsdimp.com>
In-Reply-To: <20070913212110.78b8a654@sol.hackerzberg.local>
References:  <20070913122757.7bbf8433@sol.hackerzberg.local> <46E919F4.7050008@bulinfo.net> <20070913212110.78b8a654@sol.hackerzberg.local>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Skalla Raabjorn <skalla.raabjorn@gmx.de>
Subject: Re: Error on installing cross binutils
Date: Thu, 13 Sep 2007 21:21:10 +0200

> On Thu, 13 Sep 2007 14:07:32 +0300
> Krassimir Slavchev <krassi@bulinfo.net> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Skalla Raabjorn wrote:
> > > Hi all,
> > > 
> > > I'm currently trying to follow this howto:
> > > http://people.freebsd.org/~cognet/freebsd_arm.txt
> > > 
> > 
> > This seems to be old. Just set TARGET=arm and TARGET_ARCH=arm in
> > /etc/make/conf and then 'make buildworld' ...
> 
> Ok, this did work. But how do I build a cross-compiler or better how do
> I compile foreign code (think u-boot) on i386 for arm?

I have some patches that install everything into /usr/arm-freebsd
that's needed for most configure scripts to do the right thing.  This
would be the best solution.

However, since I don't have those hacks packaged up, the next best
thing is to cd to the src directory and do make buildenv.  This gives
you a build environment that has the cross compilers in place.  Don't
know if it would work for something as complex as uboot.

Interested in testing some patches if I run some diffs?

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070913.132838.39164264.imp>