1# $FreeBSD$ 2 3# Build the kernel ${KERNCONF} 4KERNCONF?= ${KERNEL:UGENERIC} 5 6TARGET?= ${MACHINE} 7# keep this compatible with peoples expectations... 8KERN_OBJDIR= ${OBJTOP}/sys/compile/${KERNCONF} 9KERN_CONFDIR= ${SRCTOP}/sys/${TARGET}/conf 10 11CONFIG= ${STAGE_HOST_OBJTOP}/usr/sbin/config 12 13${KERNCONF}.config: .MAKE .META 14 mkdir -p ${KERN_OBJDIR:H} 15 (cd ${KERN_CONFDIR} && \ 16 ${CONFIG} ${CONFIGARGS} -d ${KERN_OBJDIR} ${KERNCONF}) 17 @touch $@ 18 19# we need to pass curdirOk=yes to meta mode, since we want .meta files 20# in ${KERN_OBJDIR} 21${KERNCONF}.build: .MAKE ${KERNCONF}.config 22 (cd ${KERN_OBJDIR} && META_MODE="${.MAKE.MODE} curdirOk=yes" ${.MAKE}) 23 24.if ${.MAKE.LEVEL} > 0 25all: ${KERNCONF}.build 26.endif 27 28UPDATE_DEPENDFILE= no 29 30.include <bsd.prog.mk> 31