From owner-freebsd-arm@FreeBSD.ORG Thu Sep 13 19:29:53 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62A0816A41B for ; Thu, 13 Sep 2007 19:29:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A4ED313C45D for ; Thu, 13 Sep 2007 19:29:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8DJScAB026200; Thu, 13 Sep 2007 13:28:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Sep 2007 13:28:38 -0600 (MDT) Message-Id: <20070913.132838.39164264.imp@bsdimp.com> To: skalla.raabjorn@gmx.de From: Warner Losh In-Reply-To: <20070913212110.78b8a654@sol.hackerzberg.local> References: <20070913122757.7bbf8433@sol.hackerzberg.local> <46E919F4.7050008@bulinfo.net> <20070913212110.78b8a654@sol.hackerzberg.local> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 13 Sep 2007 13:28:39 -0600 (MDT) Cc: freebsd-arm@freebsd.org Subject: Re: Error on installing cross binutils X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 19:29:53 -0000 From: Skalla Raabjorn 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 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