summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 21:16:12 +0000
committerphk <phk@FreeBSD.org>2003-05-31 21:16:12 +0000
commit3d538bff10c615a5e10d3931797f15b9a0adea79 (patch)
tree7c5bcceb5d43550d33d6ca2aa509f1c8d5909828 /sys/conf
parent6856bac682600e8436f7f483599384f4e5571463 (diff)
downloadFreeBSD-src-3d538bff10c615a5e10d3931797f15b9a0adea79.zip
FreeBSD-src-3d538bff10c615a5e10d3931797f15b9a0adea79.tar.gz
If DESTDIR was specified as a makeoption in the kernelconfig file
we want to pass it on to the modules build so we don't install the kernel under DESTDIR and the modules in /boot.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.post.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index 555d314..bb8dbc6 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -9,6 +9,11 @@
# $FreeBSD$
#
+# In case the config had a makeoptions DESTDIR...
+.if defined(DESTDIR)
+MKMODULESENV+= DESTDIR="${DESTDIR}"
+.endif
+
.MAIN: all
.for target in all clean cleandepend cleandir clobber depend install \
OpenPOWER on IntegriCloud