Home | History | Annotate | Line # | Download | only in mk
      1  1.14       mrg #	$NetBSD: bsd.kernobj.mk,v 1.14 2013/06/03 07:39:07 mrg 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.14       mrg # KERNCONFDIRDEFAULT	Is the default for ${KERNCONFDIR}.
     11  1.14       mrg #		It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'.
     12  1.14       mrg #
     13  1.10     lukem # KERNCONFDIR	Is where the configuration files for kernels are found.
     14  1.14       mrg #		Users can set this to have build.sh find kernel
     15  1.14       mrg #		configurations in another directory.
     16  1.14       mrg #		It defaults to `${KERNCONFDIRDEFAULT}'.
     17  1.11     lukem #
     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.14       mrg KERNSRCDIR?=		${NETBSDSRCDIR}/sys
     27  1.14       mrg KERNARCHDIR?=		arch/${MACHINE}
     28  1.14       mrg KERNCONFDIRDEFAULT?=	${KERNSRCDIR}/${KERNARCHDIR}/conf
     29  1.14       mrg KERNCONFDIR?=		${KERNCONFDIRDEFAULT}
     30  1.14       mrg 
     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