Build kernel
This commit is contained in:
parent
0a7402f278
commit
ab103c4628
31
pkgs/pseudo/kernel/Makefile
Normal file
31
pkgs/pseudo/kernel/Makefile
Normal file
@ -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>
|
11
pkgs/pseudo/kernel/Makefile.depend
Normal file
11
pkgs/pseudo/kernel/Makefile.depend
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user