From e7df8036704a3b2b7b54471c91e3fad3a84c7863 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 26 Aug 2001 18:39:07 +0000 Subject: [PATCH] Add a variable KRNLDEFDIR that specifies where to find the kernel config files. It defaults to KRNLCONFDIR. --- Makefile.inc1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 74435b27d1df..c69de4caf147 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -396,11 +396,12 @@ MACHINE= ${MACHINE_ARCH} KRNLSRCDIR= ${.CURDIR}/sys KRNLCONFDIR= ${KRNLSRCDIR}/${MACHINE}/conf KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR} +KRNLDEFDIR?= ${KRNLCONFDIR} BUILDKERNELS= INSTALLKERNEL= .for _kernel in ${KERNCONF} -.if exists(${KRNLCONFDIR}/${_kernel}) +.if exists(${KRNLDEFDIR}/${_kernel}) BUILDKERNELS+= ${_kernel} .if empty(INSTALLKERNEL) INSTALLKERNEL= ${_kernel} @@ -434,7 +435,7 @@ buildkernel: .if !defined(NO_KERNELCONFIG) cd ${KRNLCONFDIR}; \ PATH=${TMPPATH} \ - config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel} + config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${KRNLDEFDIR}/${_kernel} .endif .if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN) cd ${KRNLOBJDIR}/${_kernel}; \