Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2008 17:12:54 +0300
From:      Stavros Markou <stma@antcor.com>
To:        gary.jennejohn@freenet.de
Cc:        freebsd-arm@freebsd.org
Subject:   Re: how to build root filesystem for ixp425
Message-ID:  <1219068774.12457.26.camel@Hellboy>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <stma@antcor.com> 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--




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