Cross compiling

Kris Kennaway kris at obsecurity.org
Tue Feb 15 13:34:39 PST 2005


On Tue, Feb 15, 2005 at 09:28:33PM +0000, Alex Burke wrote:
> Hi,
> 
> I was just wondering whether it is posibl to build say a 4.11 kernel
> on a 5.3 system - I'd like to have only one machine here on which I
> maintain all the sources and buidl what i need, then I think you can
> mount the /usr/obj file system and /usr/src and run the install stages
> on other systems.

This will usually work (you need to make buildworld first before you
make buildkernel), but sometimes it's not possible to build old-branch
sources on a new branch (e.g. 4.x on 5.3).

> Also, can I build kernels for different architectures on a normal i386 box?

make buildworld TARGET_ARCH=whatever; make buildkernel TARGET_ARCH=whatever.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050215/0e2c5d57/attachment.bin


More information about the freebsd-stable mailing list