From owner-cvs-src@FreeBSD.ORG Wed Apr 16 14:09:44 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AAA637B407 for ; Wed, 16 Apr 2003 14:09:44 -0700 (PDT) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1B2D43FE9 for ; Wed, 16 Apr 2003 14:09:41 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 24149 invoked from network); 16 Apr 2003 21:09:49 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 16 Apr 2003 21:09:49 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h3GL9bOv073334; Wed, 16 Apr 2003 17:09:37 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200304162105.h3GL56P1009379@repoman.freebsd.org> Date: Wed, 16 Apr 2003 17:09:39 -0400 (EDT) From: John Baldwin To: John Baldwin cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: RE: cvs commit: src Makefile.inc1 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 21:09:44 -0000 On 16-Apr-2003 John Baldwin wrote: > jhb 2003/04/16 14:05:06 PDT > > FreeBSD src repository > > Modified files: > . Makefile.inc1 > Log: > Rename KRNLSRCDIR to KERNSRCDIR and allow it to be overridden. The name > change was to be consistent with other overridable variables such as > KERNCONFDIR and KERNCONF. This allows you to use 'buildkernel' to cross build a kernel and not use /usr/src for your sources. Thus, for example: - Assume full current sources at /usr/src - Assume local work tree of kernel sources at /usr/work/jhb/p4/proc % cd /usr/src % make TARGET_ARCH=alpha buildworld % cd /usr/work/jhb/p4/proc/alpha/conf % make LINT % cd /usr/src % make TARGET_ARCH=alpha NO_MODULES=yes KERNCONF=LINT KERNSRCDIR=/usr/work/jhb/p4/proc buildkernel cross builds an Alpha LINT kernel of my process locking branch. I used this to cross build Alpha LINT and sparc64 and ia64 GENERIC on the jhb_proc branch today. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/