Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2009 11:56:55 +0100 (CET)
From:      Christian Kratzer <ck-lists@cksoft.de>
To:        Andrew Hotlab <andrew.hotlab@hotmail.com>
Cc:        freebsd-i386@freebsd.org, freebsd-amd64@freebsd.org, freebsd-arch@freebsd.org
Subject:   RE: Cross compiling FreeBSD
Message-ID:  <alpine.BSF.2.00.0901161154340.14974@tapio.cksoft.de>
In-Reply-To: <COL112-W780FD46B6DB58A4A4DD545F6D40@phx.gbl>
References:  <COL112-W14559CEDAEB8C5373A03B4F6D60@phx.gbl> <alpine.BSF.2.00.0901161027550.14974@tapio.cksoft.de> <COL112-W780FD46B6DB58A4A4DD545F6D40@phx.gbl>

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

On Fri, 16 Jan 2009, Andrew Hotlab wrote:
</snipp>
> Sorry for my stupid question: I'll do the right thing if I'll build an i386 jail chroot/jail on the
> amd64 builder host with the following commands? (grabbed from the FreeBSD Handbook)
> # cd /usr/src
> # make buildworld TARGET=i386
> # make installworld TARGET=i386 DESTDIR=/path-to-jail
> # cd etc/
> # make distribution DESTDIR=/path-to-jail
> # mount -t devfs devfs /path-to-jail/dev

yes that should do it but I think you can skip the cd etc/ part.
make distribution should work from /usr/src

>> The hack to enable building in an i386 chroot is to set UNAME_m
>> and UNAME_p to i386. I use following in the chroots .cshrc
>>
>> setenv UNAME_m i386
>> setenv UNAME_p i386
>>
>> This will avoid any crossbuild magic and you will be able to build
>> as if on an i386 machine.
>>
>> This of course only works for the amd64, i386 combination.
> Wonderful, I'll try this as soon as possible. Thank you!

let us know if it works out.

Greetings
Christian

-- 
Christian Kratzer                      CK Software GmbH
Email:   ck@cksoft.de                  Schwarzwaldstr. 31
Phone:   +49 7452 889 135              D-71131 Jettingen
Fax:     +49 7452 889 136              HRB 245288, Amtsgericht Stuttgart
Web:     http://www.cksoft.de/         Geschaeftsfuehrer: Christian Kratzer



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