aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2025-01-02 02:26:00 +0000
committerEd Maste <emaste@FreeBSD.org>2025-01-05 00:16:38 +0000
commit0f7d8b71b45b0a86b25e1005e83140ee6cbdff45 (patch)
tree08966692c7587919130a22a7046995e7d785518f
parent84e894ce1309b426aa5d1a20ec194401f35dc478 (diff)
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
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 5c3d190e4c3e..bad747a0e551 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