1 1.13 christos # $NetBSD: bsd.kernobj.mk,v 1.13 2010/01/25 00:43:00 christos 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.10 lukem # KERNCONFDIR Is where the configuration files for kernels are found. 11 1.10 lukem # It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'. 12 1.11 lukem # 13 1.4 sjg # KERNOBJDIR Is the kernel build directory. The kernel GENERIC for 14 1.4 sjg # instance will be compiled in ${KERNOBJDIR}/GENERIC. 15 1.10 lukem # The default is the .OBJDIR of 16 1.10 lukem # `${KERNSRCDIR}/${KERNARCHDIR}/compile'. 17 1.11 lukem # 18 1.1 sjg 19 1.7 jmc .include <bsd.own.mk> 20 1.7 jmc 21 1.9 lukem KERNSRCDIR?= ${NETBSDSRCDIR}/sys 22 1.1 sjg KERNARCHDIR?= arch/${MACHINE} 23 1.10 lukem KERNCONFDIR?= ${KERNSRCDIR}/${KERNARCHDIR}/conf 24 1.12 lukem .if !defined(KERNOBJDIR) && exists(${KERNSRCDIR}/${KERNARCHDIR}/compile) 25 1.13 christos KERNOBJDIR!= cd "${KERNSRCDIR}/${KERNARCHDIR}/compile" && ${PRINTOBJDIR} 26 1.7 jmc .endif 27