1*84d9c625SLionel Sambuc# $NetBSD: bsd.kernobj.mk,v 1.14 2013/06/03 07:39:07 mrg Exp $ 2be9962e2SThomas Veerman 3be9962e2SThomas Veerman# KERNSRCDIR Is the location of the top of the kernel src. 4be9962e2SThomas Veerman# It defaults to `${NETBSDSRCDIR}/sys'. 5be9962e2SThomas Veerman# 6be9962e2SThomas Veerman# KERNARCHDIR Is the location of the machine dependent kernel sources. 7be9962e2SThomas Veerman# It defaults to `arch/${MACHINE}', but may be overridden 8be9962e2SThomas Veerman# in case ${MACHINE} is not correct. 9be9962e2SThomas Veerman# 10*84d9c625SLionel Sambuc# KERNCONFDIRDEFAULT Is the default for ${KERNCONFDIR}. 11be9962e2SThomas Veerman# It defaults to `${KERNSRCDIR}/${KERNARCHDIR}/conf'. 12be9962e2SThomas Veerman# 13*84d9c625SLionel Sambuc# KERNCONFDIR Is where the configuration files for kernels are found. 14*84d9c625SLionel Sambuc# Users can set this to have build.sh find kernel 15*84d9c625SLionel Sambuc# configurations in another directory. 16*84d9c625SLionel Sambuc# It defaults to `${KERNCONFDIRDEFAULT}'. 17*84d9c625SLionel Sambuc# 18be9962e2SThomas Veerman# KERNOBJDIR Is the kernel build directory. The kernel GENERIC for 19be9962e2SThomas Veerman# instance will be compiled in ${KERNOBJDIR}/GENERIC. 20be9962e2SThomas Veerman# The default is the .OBJDIR of 21be9962e2SThomas Veerman# `${KERNSRCDIR}/${KERNARCHDIR}/compile'. 22be9962e2SThomas Veerman# 23be9962e2SThomas Veerman 24be9962e2SThomas Veerman.include <bsd.own.mk> 25be9962e2SThomas Veerman 26be9962e2SThomas VeermanKERNSRCDIR?= ${NETBSDSRCDIR}/sys 27be9962e2SThomas VeermanKERNARCHDIR?= arch/${MACHINE} 28*84d9c625SLionel SambucKERNCONFDIRDEFAULT?= ${KERNSRCDIR}/${KERNARCHDIR}/conf 29*84d9c625SLionel SambucKERNCONFDIR?= ${KERNCONFDIRDEFAULT} 30*84d9c625SLionel Sambuc 31be9962e2SThomas Veerman.if !defined(KERNOBJDIR) && exists(${KERNSRCDIR}/${KERNARCHDIR}/compile) 32be9962e2SThomas VeermanKERNOBJDIR!= cd "${KERNSRCDIR}/${KERNARCHDIR}/compile" && ${PRINTOBJDIR} 33be9962e2SThomas Veerman.endif 34