git: 3ea0fa86f6a4 - main - buildkernel: fix build for kernels without VIMAGE

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 26 May 2025 15:24:11 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=3ea0fa86f6a453c221c0a4aff028cb5220a2ed94

commit 3ea0fa86f6a453c221c0a4aff028cb5220a2ed94
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-05-26 15:23:37 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-05-26 15:23:37 +0000

    buildkernel: fix build for kernels without VIMAGE
    
    Fixes:  9b5ddb2accfc80f70a0da52444008ebabef2a9ee
---
 sys/modules/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index bc6fc7ae1a25..d60f7352f58d 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -429,7 +429,7 @@ SUBDIR=	\
 	wlan_xauth \
 	${_wpi} \
 	${_wpifw} \
-	wtap \
+	${_wtap} \
 	${_x86bios} \
 	xdr \
 	xl \
@@ -824,6 +824,9 @@ _wpi=		wpi
 .if ${MK_SOURCELESS_UCODE} != "no"
 _wpifw=		wpifw
 .endif
+.if ${KERN_OPTS:MVIMAGE}
+_wtap=		wtap
+.endif
 _x86bios=	x86bios
 .endif