Date: Fri, 13 Jun 2014 10:59:01 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-current@freebsd.org Cc: Oliver Pinter <oliver.pntr@gmail.com> Subject: Re: building i386 kernel on amd64 host Message-ID: <201406131059.01450.jhb@freebsd.org> In-Reply-To: <CAPjTQNF6rnwMBzcdMbeLFn_%2B6Ej-uamDuqeYHxp9KbxC44h1Gw@mail.gmail.com> References: <CAPjTQNF6rnwMBzcdMbeLFn_%2B6Ej-uamDuqeYHxp9KbxC44h1Gw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, June 13, 2014 6:21:28 am Oliver Pinter wrote: > Hi All! > > When I try to build i386 kernel on amd64 host running compile error > due wrong cpufunc.h picked up by build system. > > I used the attached script to build the kernel, and I attached a build log. > > Any suggestion how can I fix this? To build an i386 kernel on an amd64 host do this: cd /usr/src (or some other tree) make TARGET=i386 kernel-toolchain make TARGET=i386 buildkernel make TARGET=i386 installkernel DESTDIR=/some/place And your i386 kernel will end up in /some/place/boot/kernel/kernel. (You can set things like KERNCONF to pick an alternate kernel config just as with normal 'make buildkernel'.) (Your attachment was size zero for me btw) -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406131059.01450.jhb>
