diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2014-11-30 00:20:20 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2014-11-30 00:20:20 +0000 |
commit | b6209a9b5861cbf265a23afeac999cb27bfc7eae (patch) | |
tree | cccfb1631d9c3b519238efb58e573405281c0762 /targets/pseudo/kernel | |
parent | f1382cffe7703a142e8eea88242485a577c1aeb2 (diff) | |
download | src-b6209a9b5861cbf265a23afeac999cb27bfc7eae.tar.gz src-b6209a9b5861cbf265a23afeac999cb27bfc7eae.zip |
Rename pkgs to more generic targets (that's what they are)
Reviewed by: marcel
Notes
Notes:
svn path=/projects/bmake/; revision=275282
Diffstat (limited to 'targets/pseudo/kernel')
-rw-r--r-- | targets/pseudo/kernel/Makefile | 31 | ||||
-rw-r--r-- | targets/pseudo/kernel/Makefile.depend | 13 |
2 files changed, 44 insertions, 0 deletions
diff --git a/targets/pseudo/kernel/Makefile b/targets/pseudo/kernel/Makefile new file mode 100644 index 000000000000..b619eeb2af2c --- /dev/null +++ b/targets/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> diff --git a/targets/pseudo/kernel/Makefile.depend b/targets/pseudo/kernel/Makefile.depend new file mode 100644 index 000000000000..7bcff699ea9d --- /dev/null +++ b/targets/pseudo/kernel/Makefile.depend @@ -0,0 +1,13 @@ +# $FreeBSD$ + +# This file is not autogenerated - take care! + +DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} + +DIRDEPS = \ + include \ + include/xlocale \ + usr.sbin/config.host \ + + +.include <dirdeps.mk> |