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