Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 17:09:39 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   RE: cvs commit: src Makefile.inc1
Message-ID:  <XFMail.20030416170939.jhb@FreeBSD.org>
In-Reply-To: <200304162105.h3GL56P1009379@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030416170939.jhb>