1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

Using "KERNEL" for buildkernel was a very very bad mistake. $KERNEL is

already used by the kernel makefiles themselves, and this leads to a lot
of trouble when people put "KERNEL=MYKERNEL" in make.conf.  Bite the bullet
and change it to KERNCONF instead, before it gets too far entrenched.

The kernel Makefiles use ${KERNEL} as the name of what to install the
kernel as, eg: /boot/${KERNEL}/kernel or /${KERNEL}.  This leads to much
unhappiness with things like /LOCAL instead of /kernel.  buildkernel is
severely limited as it is only useful directly after a buildworld.

Reviewed by: jhb
This commit is contained in:
Peter Wemm 2001-01-22 07:29:48 +00:00
parent b8e39fd14a
commit c1ae5e3dce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71364

View File

@ -342,7 +342,7 @@ distribworld:
# buildkernel and installkernel
#
# Which kernels to build and/or install is specified by setting
# KERNEL. If not defined a GENERIC kernel is built/installed.
# KERNCONF. If not defined a GENERIC kernel is built/installed.
# Only the existing (depending MACHINE) config files are used
# for building kernels and only the first of these is designated
# as the one being installed.
@ -352,7 +352,7 @@ distribworld:
# be set to cross-build, we have to make sure MACHINE is set
# properly.
KERNEL?= GENERIC
KERNCONF?= GENERIC
INSTKERNNAME?= kernel
# The only exotic MACHINE_ARCH/MACHINE combination valid at this
@ -372,7 +372,7 @@ CONFIGARGS+= -r
BUILDKERNELS=
INSTALLKERNEL=
.for _kernel in ${KERNEL}
.for _kernel in ${KERNCONF}
.if exists(${KRNLCONFDIR}/${_kernel})
BUILDKERNELS+= ${_kernel}
.if empty(INSTALLKERNEL)
@ -388,7 +388,7 @@ INSTALLKERNEL= ${_kernel}
#
buildkernel:
.if empty(BUILDKERNELS)
@echo ">>> ERROR: Missing kernel configuration file(s) (${KERNEL})."
@echo ">>> ERROR: Missing kernel configuration file(s) (${KERNCONF})."
@false
.endif
@echo