aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-04-16 21:05:06 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-04-16 21:05:06 +0000
commit69e74195124d82e802065963228300e7ce9d4b6c (patch)
tree951dfd7961c76e4c66fef66deadcf4c40553daa5 /Makefile.inc1
parenta3007012133d5e7fc57f5487d0f4e4421281b7bd (diff)
downloadsrc-69e74195124d82e802065963228300e7ce9d4b6c.tar.gz
src-69e74195124d82e802065963228300e7ce9d4b6c.zip
Rename KRNLSRCDIR to KERNSRCDIR and allow it to be overridden. The name
change was to be consistent with other overridable variables such as KERNCONFDIR and KERNCONF.
Notes
Notes: svn path=/head/; revision=113582
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc114
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 78749d728e88..1af4f8859f3c 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -460,9 +460,9 @@ KERNCONF?= GENERIC
.endif
INSTKERNNAME?= kernel
-KRNLSRCDIR= ${.CURDIR}/sys
-KRNLCONFDIR= ${KRNLSRCDIR}/${TARGET}/conf
-KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR}
+KERNSRCDIR?= ${.CURDIR}/sys
+KRNLCONFDIR= ${KERNSRCDIR}/${TARGET}/conf
+KRNLOBJDIR= ${OBJTREE}${KERNSRCDIR}
KERNCONFDIR?= ${KRNLCONFDIR}
BUILDKERNELS=
@@ -510,12 +510,12 @@ buildkernel:
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} ${CLEANDIR}
.endif
cd ${KRNLOBJDIR}/${_kernel}; \
- MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx/aicasm \
- ${MAKE} -DNO_CPU_CFLAGS -f ${KRNLSRCDIR}/dev/aic7xxx/aicasm/Makefile
+ MAKESRCPATH=${KERNSRCDIR}/dev/aic7xxx/aicasm \
+ ${MAKE} -DNO_CPU_CFLAGS -f ${KERNSRCDIR}/dev/aic7xxx/aicasm/Makefile
cd ${KRNLOBJDIR}/${_kernel}; \
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} obj
# XXX - Gratuitously builds aicasm in the ``makeoptions NO_MODULES'' case.
-.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KRNLSRCDIR}/modules)
+.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KERNSRCDIR}/modules)
.for target in obj depend all
cd ${.CURDIR}/sys/modules/aic7xxx/aicasm; \
MAKEOBJDIRPREFIX=${KRNLOBJDIR}/${_kernel}/modules \
@@ -676,7 +676,7 @@ bootstrap-tools:
#
# build-tools: Build special purpose build tools
#
-.if defined(MODULES_WITH_WORLD) && exists(${KRNLSRCDIR}/modules)
+.if defined(MODULES_WITH_WORLD) && exists(${KERNSRCDIR}/modules)
_aicasm= sys/modules/aic7xxx/aicasm
.endif