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_DEPS} 14 mkdir -p ${KERN_OBJDIR:H} 15 (cd ${KERN_CONFDIR} && \ 16 ${CONFIG} ${CONFIGARGS} -d ${KERN_OBJDIR} ${KERNCONF}) 17 18# we need to pass curdirOk=yes to meta mode, since we want .meta files 19# in ${KERN_OBJDIR} 20${KERNCONF}.build: .MAKE ${KERNCONF}.config 21 (cd ${KERN_OBJDIR} && META_MODE="${.MAKE.MODE} curdirOk=yes" ${.MAKE}) 22 23.if ${.MAKE.LEVEL} > 0 24all: ${KERNCONF}.build 25.endif 26 27UPDATE_DEPENDFILE= no 28 29.include <bsd.prog.mk> 30