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
This commit is contained in:
Bryan Drewery
2016-05-26 23:20:01 +00:00
parent 2d86a958e2
commit 016448a507
3 changed files with 6 additions and 8 deletions
+1 -3
View File
@@ -15,10 +15,8 @@ ${KERNCONF}.config: .MAKE ${META_DEPS}
(cd ${KERN_CONFDIR} && \
${CONFIG} ${CONFIGARGS} -d ${KERN_OBJDIR} ${KERNCONF})
# we need to pass curdirOk=yes to meta mode, since we want .meta files
# in ${KERN_OBJDIR}
${KERNCONF}.build: .MAKE ${KERNCONF}.config
(cd ${KERN_OBJDIR} && META_MODE="${.MAKE.MODE} curdirOk=yes" ${.MAKE})
(cd ${KERN_OBJDIR} && ${.MAKE})
.if ${.MAKE.LEVEL} > 0
all: ${KERNCONF}.build