summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-09-03 02:58:39 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-09-03 02:58:39 +0000
commitae78d52fe55f0ef8dc80baed2b708c3b7ee1da4a (patch)
treedf90bd0512748b56e18312939e326a722630c692 /Makefile.inc1
parent06a5e547a9abdaa9b4e0513fee37a9ed99ed53c2 (diff)
downloadsrc-test2-ae78d52fe55f0ef8dc80baed2b708c3b7ee1da4a.tar.gz
src-test2-ae78d52fe55f0ef8dc80baed2b708c3b7ee1da4a.zip
Allow one to specify what the installed kernel's name is by setting
"INSTKERNNAME". Reviewed by: marcel
Notes
Notes: svn path=/head/; revision=65387
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc114
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 50e66796ae1c..b11029f19b75 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -358,6 +358,7 @@ reinstall:
# properly.
KERNEL?= GENERIC
+INSTKERNNAME?= kernel
# The only exotic MACHINE_ARCH/MACHINE combination valid at this
# time is i386/pc98. In all other cases set MACHINE equal to
@@ -408,10 +409,10 @@ buildkernel:
${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/Makefile
.if !defined(NO_KERNELDEPEND)
cd ${KRNLOBJDIR}/${_kernel}; \
- ${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel depend
+ ${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} depend
.endif
cd ${KRNLOBJDIR}/${_kernel}; \
- ${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel all
+ ${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} all
.endfor
#
@@ -421,7 +422,14 @@ buildkernel:
#
installkernel:
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
- ${CROSSENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel install
+ ${CROSSENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} install
+
+#
+# kernel
+#
+# Short hand for `make buildkernel installkernel'
+#
+kernel: buildkernel installkernel
#
# update