Home | History | Annotate | Line # | Download | only in mk
bsd.kernobj.mk revision 1.13.12.1
      1  1.13.12.1       tls #	$NetBSD: bsd.kernobj.mk,v 1.13.12.1 2013/06/23 06:28:54 tls Exp $
      2        1.1       sjg 
      3        1.4       sjg # KERNSRCDIR	Is the location of the top of the kernel src.
      4       1.10     lukem # 		It defaults to `${NETBSDSRCDIR}/sys'.
      5       1.11     lukem #
      6       1.10     lukem # KERNARCHDIR	Is the location of the machine dependent kernel sources.
      7       1.10     lukem #		It defaults to `arch/${MACHINE}', but may be overridden
      8       1.10     lukem #		in case ${MACHINE} is not correct.
      9       1.11     lukem #
     10  1.13.12.1       tls # KERNCONFDIRDEFAULT	Is the default for ${KERNCONFDIR}.
     11       1.10     lukem #		It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'.
     12       1.11     lukem #
     13  1.13.12.1       tls # KERNCONFDIR	Is where the configuration files for kernels are found.
     14  1.13.12.1       tls #		Users can set this to have build.sh find kernel
     15  1.13.12.1       tls #		configurations in another directory.
     16  1.13.12.1       tls #		It defaults to `${KERNCONFDIRDEFAULT}'.
     17  1.13.12.1       tls #
     18        1.4       sjg # KERNOBJDIR	Is the kernel build directory.  The kernel GENERIC for
     19        1.4       sjg # 		instance will be compiled in ${KERNOBJDIR}/GENERIC.
     20       1.10     lukem # 		The default is the .OBJDIR of
     21       1.10     lukem #		`${KERNSRCDIR}/${KERNARCHDIR}/compile'.
     22       1.11     lukem #
     23        1.1       sjg 
     24        1.7       jmc .include <bsd.own.mk>
     25        1.7       jmc 
     26  1.13.12.1       tls KERNSRCDIR?=		${NETBSDSRCDIR}/sys
     27  1.13.12.1       tls KERNARCHDIR?=		arch/${MACHINE}
     28  1.13.12.1       tls KERNCONFDIRDEFAULT?=	${KERNSRCDIR}/${KERNARCHDIR}/conf
     29  1.13.12.1       tls KERNCONFDIR?=		${KERNCONFDIRDEFAULT}
     30  1.13.12.1       tls 
     31       1.12     lukem .if !defined(KERNOBJDIR) && exists(${KERNSRCDIR}/${KERNARCHDIR}/compile)
     32       1.13  christos KERNOBJDIR!=	cd "${KERNSRCDIR}/${KERNARCHDIR}/compile" && ${PRINTOBJDIR}
     33        1.7       jmc .endif
     34