diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-05-26 23:20:01 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-05-26 23:20:01 +0000 |
commit | 4b36e6ff5872ac64e1a92f33bcaf69970fbe479a (patch) | |
tree | 702a58f47759a8286170f410407c6e9af4447a8b /sys/conf/kern.pre.mk | |
parent | f447d93a91b834c8465061e1d63751370fb7f441 (diff) | |
download | FreeBSD-src-4b36e6ff5872ac64e1a92f33bcaf69970fbe479a.zip FreeBSD-src-4b36e6ff5872ac64e1a92f33bcaf69970fbe479a.tar.gz |
WITH_META_MODE: Move the kernel support to kern.pre.mk.
This allows using META_MODE directly from the kernel build directory.
This also allows removing a hack from the DIRDEPS_BUILD kernel target.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r-- | sys/conf/kern.pre.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 591c988..d5781db 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -19,6 +19,11 @@ _srcconf_included_: .include <bsd.compiler.mk> .include "kern.opts.mk" +# The kernel build always occurs in the object directory which is .CURDIR. +.if ${.MAKE.MODE:Unormal:Mmeta} +.MAKE.MODE+= curdirOk=yes +.endif + # Can be overridden by makeoptions or /etc/make.conf KERNEL_KO?= kernel KERNEL?= kernel |