svn commit: r248288 - projects/bmake/pkgs/pseudo/kernel
Simon J. Gerraty
sjg at FreeBSD.org
Thu Mar 14 22:04:25 UTC 2013
Author: sjg
Date: Thu Mar 14 22:04:25 2013
New Revision: 248288
URL: http://svnweb.freebsd.org/changeset/base/248288
Log:
Build kernel
Added:
projects/bmake/pkgs/pseudo/kernel/
projects/bmake/pkgs/pseudo/kernel/Makefile (contents, props changed)
projects/bmake/pkgs/pseudo/kernel/Makefile.depend (contents, props changed)
Added: projects/bmake/pkgs/pseudo/kernel/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/bmake/pkgs/pseudo/kernel/Makefile Thu Mar 14 22:04:25 2013 (r248288)
@@ -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>
Added: projects/bmake/pkgs/pseudo/kernel/Makefile.depend
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/bmake/pkgs/pseudo/kernel/Makefile.depend Thu Mar 14 22:04:25 2013 (r248288)
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+# This file is not autogenerated - take care!
+
+DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,}
+
+DIRDEPS = \
+ usr.sbin/config.host \
+
+
+.include <dirdeps.mk>
More information about the svn-src-projects
mailing list