Cross compiling FreeBSD

Christian Kratzer ck-lists at cksoft.de
Fri Jan 16 02:57:03 PST 2009


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 at 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


More information about the freebsd-arch mailing list