From owner-freebsd-arm@FreeBSD.ORG Mon Aug 18 14:13:00 2008 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 A9DD31065673 for ; Mon, 18 Aug 2008 14:13:00 +0000 (UTC) (envelope-from stma@antcor.com) Received: from kane.otenet.gr (kane.otenet.gr [83.235.67.31]) by mx1.freebsd.org (Postfix) with ESMTP id 0B9F98FC1A for ; Mon, 18 Aug 2008 14:12:59 +0000 (UTC) (envelope-from stma@antcor.com) Received: from [192.168.1.191] (athedsl-424253.home.otenet.gr [79.131.209.59]) by kane.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m7IECwnx028813; Mon, 18 Aug 2008 17:12:58 +0300 From: Stavros Markou To: gary.jennejohn@freenet.de In-Reply-To: <20080818160531.5ea5c8e6@peedub.jennejohn.org> References: <1219048946.12457.1.camel@Hellboy> <20080818124909.GA10897@zibbi.meraka.csir.co.za> <1219064043.12457.17.camel@Hellboy> <20080818160531.5ea5c8e6@peedub.jennejohn.org> Content-Type: multipart/related; type="multipart/alternative"; boundary="=-NW6Pyb7l85poCRVKN0sz" Organization: ANTCOR S.A. Date: Mon, 18 Aug 2008 17:12:54 +0300 Message-Id: <1219068774.12457.26.camel@Hellboy> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arm@freebsd.org Subject: Re: how to build root filesystem for ixp425 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stma@antcor.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 14:13:00 -0000 --=-NW6Pyb7l85poCRVKN0sz Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, The option is well set because i am echoing it at the time of the build what i don't understand is the check about BUILD_ARCH and TARGET_ARCH or for that matter MACHINE_ARCH. I think, and let me know if i am wrong, that BUILD_ARCH must be whatever is the ARCH of the Host system. If i am right on this then why there is this check inside Makefile.inc1 : if ${MACHINE_ARCH) != ${BUILD_ARCH} .error To cross-build, set TARGET_ARCH. .endif In my case BUILD_ARCH is i386 and as it is supposed to be (?) TARGET_ARCH=arm. Best Regards, Stavros. On Mon, 2008-08-18 at 16:05 +0200, Gary Jennejohn wrote: > On Mon, 18 Aug 2008 15:54:03 +0300 > Stavros Markou wrote: > > > You are using this script with which release of FreeBSD ? In order to > > use this script do you set as tools the cross tools or native i386 (or > > any other host arch) ? > > > > I am using currently 7.0 release p2 and i cannot pass the error with > > cross build (keeps telling me to set TARGET_ARCH but it is already set > > by me as a command-line option of the make) > > > > Then the option probably isn't being passed to Makefiles in sub- > directories, i.e. not set in make's environment. > > Set it in the the global environment, that way it should always work. > > --- > Gary Jennejohn Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE --=-NW6Pyb7l85poCRVKN0sz--