aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2026-01-06 01:48:04 +0000
committerLexi Winter <ivy@FreeBSD.org>2026-01-06 01:48:04 +0000
commit0b298e314a8b47c1f2bf8a9ff86c050accbd744d (patch)
treea9d3a15befbefb629e83dbe739167686d438c018
parentf224591746bdaf14ad5f63de4738a3146cc2f55f (diff)
-rw-r--r--Makefile.inc14
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index b8f59686784d..5005e4e0acc7 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1844,10 +1844,12 @@ NO_INSTALLEXTRAKERNELS?= no
.if ${NO_INSTALLEXTRAKERNELS} != "yes"
.if defined(NO_INSTALLKERNEL)
INSTALLEXTRAKERNELS= ${BUILDKERNELS}
-.else
+.elif ${BUILDKERNELS:[#]} > 1
# First kernel is installed separately by INSTALLKERNEL, typically to
# /boot/kernel, rather than to a config-suffixed directory.
INSTALLEXTRAKERNELS= ${BUILDKERNELS:[2..-1]}
+.else
+INSTALLEXTRAKERNELS=
.endif
.endif