From owner-freebsd-questions@FreeBSD.ORG Tue Dec 23 14:41:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9857016A4CE for ; Tue, 23 Dec 2003 14:41:09 -0800 (PST) Received: from lilzmailso01.liwest.at (lilzmailso01.liwest.at [212.33.55.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D09043D41 for ; Tue, 23 Dec 2003 14:41:08 -0800 (PST) (envelope-from dgw@liwest.at) Received: from cm58-27.liwest.at ([212.33.58.27]) by lilzmailso01.liwest.at with esmtp (Exim 4.24) id 1AYvD8-0006s1-5q; Tue, 23 Dec 2003 23:41:06 +0100 From: Daniela To: Rowdy , freebsd-questions@freebsd.org Date: Tue, 23 Dec 2003 23:36:02 +0000 User-Agent: KMail/1.5.3 References: <3FE8B435.2020104@fielden.com.au> In-Reply-To: <3FE8B435.2020104@fielden.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312232336.02656.dgw@liwest.at> Subject: Re: compiling a kernel on a different machine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2003 22:41:09 -0000 On Tuesday 23 December 2003 21:31, Rowdy wrote: > Greetings, > > My attempts to compile a (5.1-RELEASE) kernel on a very old PC take > around 5 hours (of compile time), while a much faster machine sits by > idle. It would be great to be able to compile the kernel on the faster > machine and transfer it to the older machine. > > Would I be correct in thinking that the simplest way to do this would be > to execute the compile AND the install on the fast PC, then copy the > /boot/kernel directory from the fast PC to the old PC? I realise I > would need to rename /boot/kernel.old back to /boot/kernel on the fast > PC so it would boot again. > > Or is there a better way without disrupting /boot on the fast PC? Set the DESTDIR environment variable to the directory where the new kernel should go into.