cvs commit: src Makefile.inc1

John Baldwin jhb at FreeBSD.org
Wed Apr 16 14:09:44 PDT 2003


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


More information about the cvs-src mailing list