diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-03-14 22:04:25 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-03-14 22:04:25 +0000 |
commit | ab103c462827c49cb1ba845e7b81d3e2fbb95c0e (patch) | |
tree | 0d670d234307a0cde082ee9fff0ca6ce05eab331 /pkgs/pseudo/kernel/Makefile | |
parent | 0a7402f27847cac3c6900bbc568e42cd5c871a80 (diff) | |
download | src-ab103c462827c49cb1ba845e7b81d3e2fbb95c0e.tar.gz src-ab103c462827c49cb1ba845e7b81d3e2fbb95c0e.zip |
Build kernel
Notes
Notes:
svn path=/projects/bmake/; revision=248288
Diffstat (limited to 'pkgs/pseudo/kernel/Makefile')
-rw-r--r-- | pkgs/pseudo/kernel/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/pseudo/kernel/Makefile b/pkgs/pseudo/kernel/Makefile new file mode 100644 index 000000000000..b619eeb2af2c --- /dev/null +++ b/pkgs/pseudo/kernel/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +# Build the kernel ${KERNCONF} +KERNCONF?= ${KERNEL:UGENERIC} + +TARGET?= ${MACHINE} +# keep this compatible with peoples expectations... +KERN_OBJDIR= ${OBJTOP}/sys/compile/${KERNCONF} +KERN_CONFDIR= ${SRCTOP}/sys/${TARGET}/conf + +CONFIG= ${STAGE_HOST_OBJTOP}/usr/sbin/config + +${KERNCONF}.config: .MAKE .META + mkdir -p ${KERN_OBJDIR:H} + (cd ${KERN_CONFDIR} && \ + ${CONFIG} ${CONFIGARGS} -d ${KERN_OBJDIR} ${KERNCONF}) + (cd ${KERN_OBJDIR} && ${.MAKE} depend) + @touch $@ + +# 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}) + +.if ${.MAKE.LEVEL} > 0 +all: ${KERNCONF}.build +.endif + +UPDATE_DEPENDFILE= no + +.include <bsd.prog.mk> |