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. Also, can I build kernels for different architectures on a normal i386 box? Thanks, Alex J Burke.
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
> 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.Yes. I do this all the time. I never build in /usr/src or /usr/obj :-). One has to make sure that one has the right config to generate the compile tree with. I believe that the compilers are still compatable enough to allow this to happen. Building world can be done, but may require some hand steps. It has been a while since I've done this.> Also, can I build kernels for different architectures on a normal i386 box?Yes. See the recent cross compilation thread in freebsd-arch for details. Warner