aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/kern.post.mk
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2016-12-22 21:11:42 +0000
committerIan Lepore <ian@FreeBSD.org>2016-12-22 21:11:42 +0000
commit0a201eeac2957ec4f3fc26fa68993722ea53a4e5 (patch)
tree6412cfe45531e5eacc629588fb3e247677eb6e85 /sys/conf/kern.post.mk
parent3620e9605c643c36a2a077b23430d187c76c5d43 (diff)
downloadsrc-0a201eeac2957ec4f3fc26fa68993722ea53a4e5.tar.gz
src-0a201eeac2957ec4f3fc26fa68993722ea53a4e5.zip
Use ${.OBJDIR} to refer to the kernel build object dir, instead of trying
to recreate it from ${MAKEOBJDIRPREFIX} and ${SRC_BASE} and ${KERNCONF}, the latter being especially problematic when KERNCONF is set to the names of multiple kernel configs.
Notes
Notes: svn path=/head/; revision=310430
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r--sys/conf/kern.post.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index a16cb0318759..095b275455ca 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -63,7 +63,7 @@ OSRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
${MAKEOBJDIRPREFIX}${SRC_BASE}/include/osreldate.h
.endif
# Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build
-WRKDIRPREFIX?= ${MAKEOBJDIRPREFIX}${SRC_BASE}/sys/${KERNCONF}
+WRKDIRPREFIX?= ${.OBJDIR}
PORTSMODULESENV=\
env \
-u CC \