From 0f7d8b71b45b0a86b25e1005e83140ee6cbdff45 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 2 Jan 2025 02:26:00 +0000 Subject: [PATCH] Makefile.inc1: Set DISTDIR in stagekernel target The distributekernel target expects DESTDIR and DISTDIR to be set. The stagekernel target invokes `make distributekernel`, and previously left DISTDIR unset, resulting in a path with a "//" component. Instead, set DISTDIR to . to make the way we're (ab)using the distributekernel target more explicit. Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48288 --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 5c3d190e4c3..bad747a0e55 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1991,7 +1991,7 @@ packagekernel: .PHONY .endif stagekernel: .PHONY - ${_+_}${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} distributekernel + ${_+_}${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} DISTDIR=. distributekernel PORTSDIR?= /usr/ports WSTAGEDIR?= ${OBJTOP}/worldstage